Skip to main content
POST
/
api
/
ai
/
queue
Enqueue generation
curl --request POST \
  --url https://hub.oxen.ai/api/ai/queue \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "aspect_ratio": "<string>",
  "duration": 123,
  "num_generations": 1,
  "seed": 123,
  "target_namespace": "<string>"
}
'
{
  "generations": [
    {
      "generation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "processing"
    }
  ]
}

Body

application/json

Queue request

Enqueue an async image or video generation job.

model
string
required

Model ID to use

prompt
string
required

Text prompt for generation

aspect_ratio
string | null
duration
integer | null
num_generations
integer
default:1
Required range: 1 <= x <= 4
seed
integer | null
target_namespace
string | null

Namespace to store results. Defaults to current user.

Response

Generation enqueued

generations
object[]
required