Build with Google Imagen 4 Ultra
Make your first request
Use your Sorceress API key on your server. The playground uses your signed-in account; your application uses the same model with an API key.
curl -X POST 'https://sorceress.games/api/v1/jobs' \
-H 'Authorization: Bearer $SORCERESS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "google-imagen4-ultra",
"input": {
"prompt": "<prompt>",
"aspect_ratio": "<aspect_ratio>"
}
}'Inputs & settings
seedstringRandom seed for reproducible generation (Max length: 500 characters)
promptstringRequiredThe text prompt describing what you want to see (Max length: 5000 characters)
aspect_ratiostringRequiredRequired. Aspect ratio of the output image: 1:1, 16:9, 9:16, 3:4, 4:3 or auto.
Options: 1:1, 16:9, 9:16, 3:4, 4:3, auto
negative_promptstringA description of what to discourage in the generated images (Max length: 5000 characters)
Full input schema
{
"type": "object",
"required": [
"prompt",
"aspect_ratio"
],
"properties": {
"seed": {
"type": "string",
"title": "Seed",
"maxLength": 500,
"description": "Random seed for reproducible generation (Max length: 500 characters)"
},
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"description": "The text prompt describing what you want to see (Max length: 5000 characters)"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16",
"3:4",
"4:3",
"auto"
],
"type": "string",
"title": "Aspect ratio",
"description": "Required. Aspect ratio of the output image: 1:1, 16:9, 9:16, 3:4, 4:3 or auto."
},
"negative_prompt": {
"type": "string",
"title": "Negative prompt",
"maxLength": 5000,
"description": "A description of what to discourage in the generated images (Max length: 5000 characters)"
}
}
}Results, saved runs & billing
Media requests return a job ID. Poll GET /api/v1/jobs/:id until it succeeds or fails; keep the same ID while it is processing. Long chat requests can also return a saved job to poll. Completed outputs are stored in your account, and successful work is billed using your model's current rates.
A multi-step workflow may include separately billed successful actions. If a connection drops, check your saved run before submitting it again.






