/APIXO Docs

Parameter Specification

Unified API parameters for seamless model switching

Why Unified Parameters?

APIXO standardizes API parameters across all models within each category. This means:

  • Seamless model switching — Change from Flux 2 to Midjourney with minimal code changes
  • Consistent experience — Same parameter names and types across similar models
  • Faster integration — Learn once, use everywhere

Request Structure

All generation models follow the same request structure:

{
  "provider": "auto",
  "request_type": "async",
  "callback_url": "https://your-server.com/callback",
  "input": {
    "mode": "text-to-image",
    "prompt": "your description",
    // ... other parameters
  }
}

Top-Level Parameters

ParameterTypeDefaultDescription
providerstringautoRouting: auto, value, or official
request_typestringasyncasync (polling) or callback (webhook)
callback_urlstringRequired when request_type=callback
inputobjectModel input parameters

Image Generation Parameters

All image models (Flux 2, Midjourney, GPT Image 1, etc.) share these common parameters:

{
  "input": {
    "mode": "text-to-image",
    "prompt": "a serene mountain landscape at sunset",
    "negative_prompt": "blurry, low quality",
    "image_urls": ["https://..."],
    "aspect_ratio": "16:9",
    "resolution": "2K",
    "output_format": "png"
  }
}
ParameterTypeDescription
modestringtext-to-image or image-to-image
promptstringText description for generation
negative_promptstringElements to avoid
image_urlsstring[]Reference images (for image-to-image)
aspect_ratiostring1:1, 16:9, 9:16, 4:3, 3:4, etc.
resolutionstring1K, 2K, or 4K
output_formatstringpng or jpeg

Video Generation Parameters

All video models (Sora 2, Kling, Veo, etc.) share these common parameters:

{
  "input": {
    "mode": "text-to-video",
    "prompt": "a drone shot flying over mountains",
    "negative_prompt": "shaky, low quality",
    "image_urls": ["https://..."],
    "aspect_ratio": "16:9",
    "resolution": "1080p",
    "duration": 10,
    "sound": true
  }
}
ParameterTypeDescription
modestringtext-to-video or image-to-video
promptstringText description for generation
negative_promptstringElements to avoid
image_urlsstring[]Reference images (for image-to-video)
aspect_ratiostring1:1, 16:9, 9:16
resolutionstring480p, 720p, or 1080p
durationintegerVideo length in seconds
soundbooleanWhether to generate audio

Audio Generation Parameters

Audio models (Suno) use these parameters:

{
  "input": {
    "mode": "V4_5PLUS",
    "prompt": "upbeat pop song about summer",
    "customMode": false,
    "instrumental": false
  }
}
ParameterTypeDescription
modestringVersion: V4, V4_5, V4_5PLUS, V5
promptstringLyrics or music description
customModebooleanCustom mode with full control
instrumentalbooleanInstrumental only (no vocals)

Aspect Ratio Reference

Supported across most models:

ValueDescriptionBest For
1:1SquareSocial media, avatars
16:9WidescreenVideo, desktop wallpapers
9:16VerticalMobile, short videos
4:3ClassicTraditional photos
3:4PortraitClassic portraits
21:9Ultra-wideCinematic, banners

Quick Reference

// Image Generation
{
  "provider": "auto",
  "request_type": "async",
  "input": {
    "mode": "text-to-image",
    "prompt": "...",
    "aspect_ratio": "16:9",
    "resolution": "2K"
  }
}
 
// Video Generation
{
  "provider": "auto",
  "request_type": "callback",
  "callback_url": "https://...",
  "input": {
    "mode": "text-to-video",
    "prompt": "...",
    "aspect_ratio": "16:9",
    "duration": 10
  }
}
 
// Audio Generation
{
  "provider": "auto",
  "request_type": "async",
  "input": {
    "mode": "V4_5PLUS",
    "prompt": "...",
    "customMode": false,
    "instrumental": false
  }
}

Some models have additional unique parameters for advanced features. See individual model documentation for details.


On this page