Skip to main content
POST
/
gpt-image-1.5
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/openai/gpt-image-1.5/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A futuristic robot assistant in a modern home"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-openai-abc123",
    "model_id": "gpt-image-2",
    "get_result": {
      "method": "GET",
      "url": "https://api.modellix.ai/api/v1/tasks/task-openai-abc123"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Request payload for standard GPT Image generation models.

Request payload for standard GPT Image generation models.

prompt
string
required

Image description text, supports up to 32,000 characters

Required string length: 1 - 32000
Example:

"A serene zen garden with a stone path and bamboo"

size
enum<string>
default:1024x1024

Image size. Preset resolutions only

Available options:
1024x1024,
1536x1024,
1024x1536
Example:

"1024x1024"

quality
enum<string>
default:low

Image quality level. 'low': fast draft (default), 'medium': balanced, 'high': best quality

Available options:
low,
medium,
high
Example:

"high"

background
enum<string>
default:auto

Background transparency. 'transparent': transparent background (requires png or webp format), 'opaque': solid background, 'auto': model decides

Available options:
transparent,
opaque,
auto
Example:

"transparent"

Response

Task submitted successfully

Response object for asynchronous task submission.

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.