OpenAI Tasks API
POSThttps://api.acedata.cloud/openai/tasks
Request Headers
acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token
Request Body
idstring
Task ID (returned in the original response). Used by `retrieve`.
idsarray
Task ID list. Used by `retrieve_batch`.
typestring
Filter tasks by upstream worker tags. `images` covers tasks processed by the gpt-image worker (e.g., `gpt-image-2`); `images_generations` / `images_edits` cover tasks processed by the old version of OpenAI worker (e.g., `gpt-image-1`, nano-banana). Used by `retrieve_batch`.
Please select
limitinteger
Page size. Used by `retrieve_batch`.
actionstring
Operation type. Use `retrieve` to query a single task, and use `retrieve_batch` to list tasks in bulk.
Please select
offsetinteger
Pagination offset. Used by `retrieve_batch`.
user_idstring
Filter tasks by `user_id`. Used by `retrieve_batch`.
trace_idstring
The tracking ID of the original request. Used by `retrieve`.
trace_idsarray
Tracking ID list. Used by `retrieve_batch`.
application_idstring
Filter tasks by `application_id`. Used by `retrieve_batch`.
created_at_maxnumber
Filter tasks created before this Unix timestamp (seconds). Used by `retrieve_batch`.
created_at_minnumber
Filter tasks created after this Unix timestamp (seconds). Used by `retrieve_batch`.
Response
OpenAI generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
