Build with Grok Imagine Image 2.0 Segment Map
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": "grok-imagine-image-2-0-segment-map",
"input": {}
}'Inputs & settings
Full input schema
{
"type": "object",
"oneOf": [
{
"type": "object",
"title": "task_id",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string",
"title": "Task ID",
"minLength": 1,
"description": "The ID of an existing task. Required."
}
}
},
{
"type": "object",
"title": "image_url",
"required": [
"image_url"
],
"properties": {
"image_url": {
"type": "string",
"title": "Image URL",
"format": "uri",
"x-media": "image",
"description": "The URL of the reference image."
}
}
}
],
"properties": {}
}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.






