Skip to main content
POST
https://test.aireiter.com
/
api
/
openapi
/
query
curl --request POST \
  --url 'https://test.aireiter.com/api/openapi/query' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "task_id": "order_lwU2d-VkUq9-tlCCmrdYu"
  }'
{
  "statusCode": 200,
  "message": "",
  "data": {
      "task_id": "order_lwU2d-VkUq9-tlCCmrdYu",
      "status": "completed",
      "created_at": "2025-12-18T10:12:11.000Z",
      "completed_at": "2025-12-18T10:13:41.000Z",
      "input": {
          "model": "nano_banana",
          "params": {
              "format": "jpeg",
              "prompt": "dog",
              "image_url": "https://s1.pxz.ai/upload/nano_banana/20251217/lAI2Anos92Un0NLgGyDwl.png,https://s1.pxz.ai/upload/nano_banana/20251217/p9DkzlcwX2pleV-kf5XK4.png,https://s1.pxz.ai/upload/nano_banana/20251217/UMM7vnF_JPqmvqt8bO2Uo.jpeg",
              "show_public": true,
              "aspect_ratio": "16:9"
          },
          "showPublic": 0,
          "attachments": [
              "https://s1.pxz.ai/upload/nano_banana/20251217/lAI2Anos92Un0NLgGyDwl.png,https://s1.pxz.ai/upload/nano_banana/20251217/p9DkzlcwX2pleV-kf5XK4.png,https://s1.pxz.ai/upload/nano_banana/20251217/UMM7vnF_JPqmvqt8bO2Uo.jpeg"
          ]
      },
      "credits_used": 100,
      "output": [
          {
              "url": "https://s1.pxz.ai/upload/image-generator/20251218/hYtdX7AInk4HgErJCgD-w-item-0.jpeg"
          }
      ]
  }
}

Authorizations

Authorization
string
required
All endpoints require Bearer Token authenticationGet the API Key:Visit the API Key management page to obtain your API KeyAdd the following to the request headers when using:
Authorization: Bearer YOUR_API_KEY

Body

task_id
string
The task ID returned by the Generate APIEither this or out_task_id must be provided
out_task_id
string
Initiator’s task IDEither this or task_id must be provided

Response

task_id
string
Task ID
status
string
Task Status:
  • pending - Waiting in queue
  • processing - Processing
  • completed - Successfully completed
  • failed - Failed
input
object
Task input (optional, returned only in certain cases)Contains the complete parameter information submitted with the task
output
array
Task output (returned after task completion)An array containing the generation results, each element includes a url field pointing to the generated resource
error
object
Error information (returned when the task fails)
credits_used
number
Credits used
created_at
string
Creation time (ISO 8601 format)
completed_at
string
Completion time (returned after task completion, ISO 8601 format)
curl --request POST \
  --url 'https://test.aireiter.com/api/openapi/query' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "task_id": "order_lwU2d-VkUq9-tlCCmrdYu"
  }'
{
  "statusCode": 200,
  "message": "",
  "data": {
      "task_id": "order_lwU2d-VkUq9-tlCCmrdYu",
      "status": "completed",
      "created_at": "2025-12-18T10:12:11.000Z",
      "completed_at": "2025-12-18T10:13:41.000Z",
      "input": {
          "model": "nano_banana",
          "params": {
              "format": "jpeg",
              "prompt": "dog",
              "image_url": "https://s1.pxz.ai/upload/nano_banana/20251217/lAI2Anos92Un0NLgGyDwl.png,https://s1.pxz.ai/upload/nano_banana/20251217/p9DkzlcwX2pleV-kf5XK4.png,https://s1.pxz.ai/upload/nano_banana/20251217/UMM7vnF_JPqmvqt8bO2Uo.jpeg",
              "show_public": true,
              "aspect_ratio": "16:9"
          },
          "showPublic": 0,
          "attachments": [
              "https://s1.pxz.ai/upload/nano_banana/20251217/lAI2Anos92Un0NLgGyDwl.png,https://s1.pxz.ai/upload/nano_banana/20251217/p9DkzlcwX2pleV-kf5XK4.png,https://s1.pxz.ai/upload/nano_banana/20251217/UMM7vnF_JPqmvqt8bO2Uo.jpeg"
          ]
      },
      "credits_used": 100,
      "output": [
          {
              "url": "https://s1.pxz.ai/upload/image-generator/20251218/hYtdX7AInk4HgErJCgD-w-item-0.jpeg"
          }
      ]
  }
}