Get several tasks
Gets the state of up to 100 asynchronous requests in one call, so a page that sent 10 requests polls once for all 10. Use it instead of one request per task when you are waiting for several. Tasks come back in the order asked for; an id that is not a task of your account, or is no longer kept, is listed in `not_found` and does not fail the call.
Gets the state of up to 100 asynchronous requests in one call, so a page that sent 10 requests polls once for all 10. Use it instead of one request per task when you are waiting for several. Tasks come back in the order asked for; an id that is not a task of your account, or is no longer kept, is listed in not_found and does not fail the call.
apiKeyAuthorizationBearer <token>Your API key, sent as Authorization: Bearer <key>.
ids*stringThe task ids, separated by commas, at most 100. Repeating the parameter (ids=a&ids=b) works too.
The tasks that were found, and the ids that were not.
application/json- response
object*"list""list"data*array<>The tasks, in the order of ids.
not_found*array<string>The ids that are not tasks of this account or are no longer kept.
curl -X GET 'https://api.cheapestimagen.com/v1/images/tasks?ids=req_33ac10d3e9a8e6f120f4c0d3%2Creq_26e50328772b7d62f59d355a'{ "object": "list", "data": [ { "id": "string", "object": "image.task", "status": "in_progress", "created": 0, "finished": 0, "model": "string", "result": { "created": 0, "data": [ { "b64_json": "string", "url": "http://example.com" } ] }, "error": { "message": "string", "type": "string", "param": "string", "code": "string" } } ], "not_found": [ "string" ]}Get task GET
Gets the state of one asynchronous request by its task id: `in_progress`, then `succeeded` with the images or `failed` with the error. A task can be read for as long as its images are kept, 72 hours. Poll every few seconds; reading a task does not count as a request in progress. To wait for several tasks, use `GET /images/tasks?ids=` and read them in one call.
List models GET
Lists the models your API key can use, with the id to pass in the model field. Every listed model is one the image endpoints accept.