WanAPIs · Schema

ImageGenerationRequest

OpenAI-compatible image generation request accepted by POST https://api.wanapis.com/v1/images/generations.

LLM GatewayAI API GatewayOpenAI CompatibleModel MarketplaceLLMGPTClaudeGeminiDeepSeekImage GenerationVideo GenerationAudioMultimodalRoutingFailover

Properties

Name Type Description
model string
prompt string
n integer
size string e.g. 1024x1024
quality string
style string
response_format string
user string
View JSON Schema on GitHub

JSON Schema

wanapis-imagerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://wanapis.com/schemas/ImageRequest.json",
  "title": "ImageGenerationRequest",
  "description": "OpenAI-compatible image generation request accepted by POST https://api.wanapis.com/v1/images/generations.",
  "type": "object",
  "required": ["model", "prompt"],
  "properties": {
    "model": { "type": "string" },
    "prompt": { "type": "string" },
    "n": { "type": "integer", "minimum": 1, "default": 1 },
    "size": { "type": "string", "description": "e.g. 1024x1024" },
    "quality": { "type": "string", "enum": ["standard", "hd"] },
    "style": { "type": "string", "enum": ["vivid", "natural"] },
    "response_format": { "type": "string", "enum": ["url", "b64_json"] },
    "user": { "type": "string" }
  }
}