Skip to main content

Image Generation

The image generation endpoint allows you to generate images from text prompts. Simply provide a prompt describing the image you want to create. To see the list of models that support image generation, visit the Models page and filter by β€œText to Image”.
curl -X POST \
  https://hub.oxen.ai/api/images/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
    "model": "Qwen/Qwen-Image",
    "prompt": "A majestic ox standing in a field at sunset",
    "num_inference_steps": 28
  }'

Parameters

  • model: The model identifier to use for image generation (e.g., Qwen/Qwen-Image)
  • prompt: Text description of the image you want to generate
  • num_inference_steps: Number of inference steps (optional, defaults vary by model)