Build with Flux 2 Flex
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": "flux-2-flex-text-to-image",
"input": {
"prompt": "<prompt>",
"aspect_ratio": "<aspect_ratio>",
"resolution": "<resolution>"
}
}'Inputs & settings
promptstringRequiredGeneration prompt, length must be between 3-5000 characters. (Maximum length: 5000 characters)
resolutionstringRequiredRequired. Output image resolution.
Options: 1K, 2K
aspect_ratiostringRequiredRequired. Aspect ratio of the generated image.
Options: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3
nsfw_checkerbooleanDefaults to false. When false, no additional content filtering is applied and results are returned directly by the model.
Full input schema
{
"type": "object",
"required": [
"prompt",
"aspect_ratio",
"resolution"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"description": "Generation prompt, length must be between 3-5000 characters. (Maximum length: 5000 characters)"
},
"resolution": {
"enum": [
"1K",
"2K"
],
"type": "string",
"title": "Resolution",
"description": "Required. Output image resolution."
},
"aspect_ratio": {
"enum": [
"1:1",
"4:3",
"3:4",
"16:9",
"9:16",
"3:2",
"2:3"
],
"type": "string",
"title": "Aspect ratio",
"description": "Required. Aspect ratio of the generated image."
},
"nsfw_checker": {
"type": "boolean",
"title": "NSFW checker",
"description": "Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model."
}
}
}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.






