{
  "openapi": "3.0.3",
  "info": {
    "title": "UniallAI Developer API",
    "version": "2026.05",
    "description": "OpenAI-compatible API for chat, image, video, async tasks, usage, unified wallet billing, and webhook event payloads."
  },
  "servers": [
    {
      "url": "https://api.uniall.ai/v1",
      "description": "UniallAI production gateway"
    }
  ],
  "tags": [
    {
      "name": "Account",
      "description": "Authenticated account, wallet, budget, and concurrency status."
    },
    {
      "name": "Capabilities",
      "description": "Public capability discovery for endpoints, modalities, currencies, idempotency, webhooks, and limits."
    },
    {
      "name": "Readiness",
      "description": "Authenticated production-readiness checks for API launch preparation."
    },
    {
      "name": "Models",
      "description": "Available model catalog."
    },
    {
      "name": "Pricing",
      "description": "Public pricing catalog and billing unit descriptions."
    },
    {
      "name": "Chat",
      "description": "OpenAI-compatible chat completions."
    },
    {
      "name": "Generations",
      "description": "Asynchronous image, video, and audio generation tasks."
    },
    {
      "name": "Tasks",
      "description": "Task status and result lookup."
    },
    {
      "name": "Usage",
      "description": "Unified wallet usage and billing records."
    },
    {
      "name": "Estimates",
      "description": "Preflight cost estimates before a request is submitted."
    },
    {
      "name": "Status",
      "description": "Public service health for API clients and customer status pages."
    },
    {
      "name": "Errors",
      "description": "Machine-readable error catalog and retry guidance."
    },
    {
      "name": "Limits",
      "description": "Public concurrency tiers, retry headers, and traffic-shaping guidance."
    },
    {
      "name": "Changelog",
      "description": "Public API version history and migration notes."
    },
    {
      "name": "Webhooks",
      "description": "Webhook event payload schemas delivered to your server."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "tags": [
          "Status"
        ],
        "summary": "Get service status",
        "operationId": "getServiceStatus",
        "security": [],
        "parameters": [
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "zh-CN",
                "en-US",
                "ja-JP",
                "ko-KR"
              ]
            },
            "description": "Optional display locale for status titles, summaries, components, and incident copy."
          }
        ],
        "responses": {
          "200": {
            "description": "Current API health and public incidents",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatus"
                },
                "examples": {
                  "degraded": {
                    "value": {
                      "object": "service.status",
                      "overallStatus": "degraded",
                      "title": "Partial Degradation",
                      "summary": "Core API is available, but platform route degradation, failed tasks, or callback backlog requires monitoring.",
                      "metrics": {
                        "successRate": 99.8,
                        "activeApiRequests": 12,
                        "asyncPending": 3,
                        "webhookBacklog": 0,
                        "onlineModelCount": 8
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/capabilities": {
      "get": {
        "tags": [
          "Capabilities"
        ],
        "summary": "Discover API capabilities",
        "operationId": "getCapabilities",
        "security": [],
        "responses": {
          "200": {
            "description": "Public endpoint, modality, locale, currency, idempotency, webhook, and limit capabilities",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapabilitiesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/errors": {
      "get": {
        "tags": [
          "Errors"
        ],
        "summary": "List error codes",
        "operationId": "listErrorCodes",
        "security": [],
        "responses": {
          "200": {
            "description": "Machine-readable error catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCatalog"
                }
              }
            }
          }
        }
      }
    },
    "/errors/{code}": {
      "get": {
        "tags": [
          "Errors"
        ],
        "summary": "Get error code detail",
        "operationId": "getErrorCodeDetail",
        "security": [],
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Machine-readable error code, for example concurrency_limit_exceeded."
          }
        ],
        "responses": {
          "200": {
            "description": "Single error code detail, retry policy, example response, and support guidance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/changelog": {
      "get": {
        "tags": [
          "Changelog"
        ],
        "summary": "List API changelog records",
        "operationId": "listChangelog",
        "security": [],
        "responses": {
          "200": {
            "description": "Developer API changelog and migration guidance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangelogResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pricing": {
      "get": {
        "tags": [
          "Pricing"
        ],
        "summary": "List public model pricing",
        "operationId": "listPricing",
        "security": [],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "chat",
                "image",
                "video",
                "audio"
              ]
            },
            "description": "Optional model type filter."
          }
        ],
        "responses": {
          "200": {
            "description": "Public model price catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingCatalog"
                }
              }
            }
          }
        }
      }
    },
    "/rate-limits": {
      "get": {
        "tags": [
          "Limits"
        ],
        "summary": "List public API rate-limit policy",
        "operationId": "listRateLimits",
        "security": [],
        "responses": {
          "200": {
            "description": "Public concurrency tier and request backoff policy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitPolicy"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Capabilities"
        ],
        "summary": "Get OpenAPI specification",
        "operationId": "getOpenApiSpec",
        "security": [],
        "responses": {
          "200": {
            "description": "Machine-readable OpenAPI 3.0 specification for the UniallAI Developer API",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/account": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get authenticated account status",
        "operationId": "getAccountStatus",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Unified wallet, API key, budget, concurrency, and model availability status",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-wallet": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "unified"
                  ]
                }
              },
              "x-uniall-balance-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-balance-cny": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "object": "account",
                      "wallet": "unified",
                      "balance": {
                        "usd": 174.22,
                        "cny": 0,
                        "shared": true
                      },
                      "concurrency": {
                        "limit": 40,
                        "source": "tier_enterprise"
                      },
                      "models": {
                        "available": 54
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/readiness": {
      "get": {
        "tags": [
          "Readiness"
        ],
        "summary": "Get authenticated API launch readiness",
        "operationId": "getReadiness",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Production readiness score, launch blockers, advisory checks, and next actions",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-wallet": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "unified"
                  ]
                }
              },
              "x-uniall-readiness-score": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-readiness-status": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessResponse"
                },
                "examples": {
                  "ready": {
                    "value": {
                      "object": "readiness",
                      "wallet": "unified",
                      "status": "ready",
                      "score": 96,
                      "summary": "This account is ready for production integration.",
                      "checks": [
                        {
                          "id": "api_key",
                          "status": "ready",
                          "required": true
                        },
                        {
                          "id": "unified_wallet",
                          "status": "ready",
                          "required": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/models": {
      "get": {
        "tags": [
          "Models"
        ],
        "summary": "List models",
        "operationId": "listModels",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Model list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelList"
                },
                "examples": {
                  "default": {
                    "value": {
                      "object": "list",
                      "data": [
                        {
                          "id": "gpt-image-2-origin",
                          "object": "model",
                          "owned_by": "uniall",
                          "type": "image",
                          "description": "OpenAI 图片生成模型，支持参考图、比例、分辨率和画质参数。",
                          "pricing": {
                            "unitPriceUsd": 0.01485,
                            "inputPricePer1kUsd": 0,
                            "outputPricePer1kUsd": 0,
                            "resolutionPrices": [
                              {
                                "resolution": "1K",
                                "unitPriceUsd": 0.01485,
                                "upstreamCostUsd": 0.027,
                                "suggestedRetailUsd": 0.01485,
                                "enabled": true
                              },
                              {
                                "resolution": "2K",
                                "unitPriceUsd": 0.0451,
                                "upstreamCostUsd": 0.082,
                                "suggestedRetailUsd": 0.0451,
                                "enabled": true
                              },
                              {
                                "resolution": "4K",
                                "unitPriceUsd": 0.0924,
                                "upstreamCostUsd": 0.168,
                                "suggestedRetailUsd": 0.0924,
                                "enabled": true
                              }
                            ],
                            "priceContext": "api",
                            "profiles": {
                              "api": {
                                "unitPriceUsd": 0.01485,
                                "inputPricePer1kUsd": 0,
                                "outputPricePer1kUsd": 0,
                                "resolutionPrices": [
                                  {
                                    "resolution": "1K",
                                    "unitPriceUsd": 0.01485,
                                    "upstreamCostUsd": 0.027,
                                    "suggestedRetailUsd": 0.01485,
                                    "enabled": true
                                  },
                                  {
                                    "resolution": "2K",
                                    "unitPriceUsd": 0.0451,
                                    "upstreamCostUsd": 0.082,
                                    "suggestedRetailUsd": 0.0451,
                                    "enabled": true
                                  },
                                  {
                                    "resolution": "4K",
                                    "unitPriceUsd": 0.0924,
                                    "upstreamCostUsd": 0.168,
                                    "suggestedRetailUsd": 0.0924,
                                    "enabled": true
                                  }
                                ],
                                "estimatedChargeUsd": 0.01485,
                                "billingUnit": "image",
                                "priceContext": "api",
                                "pricingRuleId": "price_gpt_image_2_origin_v1",
                                "source": "api_model_price",
                                "text": "$0.015 / image"
                              }
                            },
                            "source": "api_model_price",
                            "text": "$0.015 / 张",
                            "unitText": "$ / 张",
                            "ruleId": "price_gpt_image_2_origin_v1"
                          }
                        },
                        {
                          "id": "grok-imagine",
                          "object": "model",
                          "owned_by": "uniall",
                          "type": "video",
                          "description": "Grok Imagine video generation model, supports text-to-video and single-image-to-video, billed by second.",
                          "pricing": {
                            "unitPriceUsd": 0.0275,
                            "inputPricePer1kUsd": 0,
                            "outputPricePer1kUsd": 0,
                            "resolutionPrices": [
                              {
                                "resolution": "480p",
                                "unitPriceUsd": 0.0275,
                                "upstreamCostUsd": 0.05,
                                "suggestedRetailUsd": 0.0275,
                                "enabled": true
                              },
                              {
                                "resolution": "720p",
                                "unitPriceUsd": 0.0385,
                                "upstreamCostUsd": 0.07,
                                "suggestedRetailUsd": 0.0385,
                                "enabled": true
                              }
                            ],
                            "priceContext": "api",
                            "profiles": {
                              "api": {
                                "unitPriceUsd": 0.0275,
                                "inputPricePer1kUsd": 0,
                                "outputPricePer1kUsd": 0,
                                "resolutionPrices": [
                                  {
                                    "resolution": "480p",
                                    "unitPriceUsd": 0.0275,
                                    "upstreamCostUsd": 0.05,
                                    "suggestedRetailUsd": 0.0275,
                                    "enabled": true
                                  },
                                  {
                                    "resolution": "720p",
                                    "unitPriceUsd": 0.0385,
                                    "upstreamCostUsd": 0.07,
                                    "suggestedRetailUsd": 0.0385,
                                    "enabled": true
                                  }
                                ],
                                "estimatedChargeUsd": 0.0275,
                                "billingUnit": "second",
                                "priceContext": "api",
                                "pricingRuleId": "price_grok_imagine_v1",
                                "source": "api_fal_official_resolution_price",
                                "text": "$0.027500 / second"
                              }
                            },
                            "source": "api_fal_official_resolution_price",
                            "text": "$0.028 / 秒",
                            "unitText": "$ / 秒",
                            "ruleId": "price_grok_imagine_v1"
                          }
                        },
                        {
                          "id": "grok-imagine-image",
                          "object": "model",
                          "owned_by": "uniall",
                          "type": "image",
                          "description": "Grok Imagine 图片生成模型，支持文生图和图片编辑，适合标准质量异步图片任务。",
                          "pricing": {
                            "unitPriceUsd": 0.01375,
                            "inputPricePer1kUsd": 0,
                            "outputPricePer1kUsd": 0,
                            "resolutionPrices": [
                              {
                                "resolution": "1k",
                                "unitPriceUsd": 0.01375,
                                "upstreamCostUsd": 0.025,
                                "suggestedRetailUsd": 0.01375,
                                "enabled": true
                              },
                              {
                                "resolution": "2k",
                                "unitPriceUsd": 0.03025,
                                "upstreamCostUsd": 0.055,
                                "suggestedRetailUsd": 0.03025,
                                "enabled": true
                              }
                            ],
                            "priceContext": "api",
                            "profiles": {
                              "api": {
                                "unitPriceUsd": 0.01375,
                                "inputPricePer1kUsd": 0,
                                "outputPricePer1kUsd": 0,
                                "resolutionPrices": [
                                  {
                                    "resolution": "1k",
                                    "unitPriceUsd": 0.01375,
                                    "upstreamCostUsd": 0.025,
                                    "suggestedRetailUsd": 0.01375,
                                    "enabled": true
                                  },
                                  {
                                    "resolution": "2k",
                                    "unitPriceUsd": 0.03025,
                                    "upstreamCostUsd": 0.055,
                                    "suggestedRetailUsd": 0.03025,
                                    "enabled": true
                                  }
                                ],
                                "estimatedChargeUsd": 0.01375,
                                "billingUnit": "image",
                                "priceContext": "api",
                                "pricingRuleId": "price_grok_imagine_image_v1",
                                "source": "api_model_price",
                                "text": "$0.014 / image"
                              }
                            },
                            "source": "api_model_price",
                            "text": "$0.014 / 张",
                            "unitText": "$ / 张",
                            "ruleId": "price_grok_imagine_image_v1"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/models/{model}": {
      "get": {
        "tags": [
          "Models"
        ],
        "summary": "Retrieve model",
        "operationId": "retrieveModel",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Model ID from /v1/models. fal.ai endpoint IDs that contain slashes must be URL-encoded."
          }
        ],
        "responses": {
          "200": {
            "description": "Model detail with pricing and request interface metadata",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/chat/completions": {
      "post": {
        "tags": [
          "Chat"
        ],
        "summary": "Create chat completion",
        "operationId": "createChatCompletion",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequest"
              },
              "examples": {
                "text": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "messages": [
                      {
                        "role": "user",
                        "content": "Write a short launch announcement for a new AI product."
                      }
                    ],
                    "stream": false
                  }
                },
                "imageGenerationViaChat": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "messages": [
                      {
                        "role": "user",
                        "content": "A snowy morning at the Forbidden City, cinematic lighting."
                      }
                    ],
                    "extra_body": {
                      "google": {
                        "image_config": {
                          "aspect_ratio": "16:9"
                        }
                      }
                    },
                    "stream": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chat completion or streaming-compatible response",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-wallet": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "unified"
                  ]
                }
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                },
                "description": "Resolved concurrency limit for this API key/account at request time."
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                },
                "description": "Approximate remaining concurrent request slots after this request was admitted."
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                },
                "description": "Rule source such as api_key_override, user_override, or tier_enterprise."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/images/generations": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create image generation task",
        "operationId": "createImageGeneration",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "textToImage": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "prompt": "A snowy morning at the Forbidden City, cinematic lighting.",
                    "n": 1,
                    "size": "1024x1024"
                  }
                },
                "imageToImage": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "prompt": "Keep the product shape, create a premium white-background three-view render.",
                    "reference_image_urls": [
                      "https://example.com/reference.jpg"
                    ],
                    "n": 1,
                    "size": "1536x1024"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/images/tasks": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create async image task",
        "operationId": "createImageTask",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "grokTextToImage": {
                  "value": {
                    "model": "grok-imagine-image",
                    "task_type": "text2image",
                    "prompt": "A premium product poster with clean lighting and sharp details.",
                    "aspect_ratio": "1:1",
                    "resolution": "1k",
                    "output_format": "jpeg",
                    "num_images": 1
                  }
                },
                "grokImageToImage": {
                  "value": {
                    "model": "grok-imagine-image-quality",
                    "task_type": "image2image",
                    "prompt": "Keep the product shape, create a premium white-background render.",
                    "image": "https://example.com/reference.png",
                    "aspect_ratio": "auto",
                    "resolution": "2k",
                    "output_format": "webp",
                    "num_images": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageTaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/images/tasks/{taskId}": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get image task status",
        "operationId": "getImageTaskStatus",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Image task ID returned by POST /v1/images/tasks."
          },
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Image task status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageTaskStatus"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/videos": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create video generation task",
        "operationId": "createVideoTask",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "textToVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "黄金时刻的街头采访镜头，镜头轻微手持晃动，人物真实发声，环境中有自然城市背景音。",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 8,
                    "extra_body": {
                      "generate_audio": true,
                      "negative_prompt": "水印, 模糊",
                      "seed": 7
                    }
                  }
                },
                "imageToVideo": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "商品在干净的摄影棚桌面上缓慢旋转，伴随柔和反射光。",
                    "image": "https://example.com/keyframe.png",
                    "size": "720p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": false,
                      "negative_prompt": "伪影, 抖动"
                    }
                  }
                },
                "firstLastFrame": {
                  "value": {
                    "model": "veo3.1-fast-video-1080p",
                    "prompt": "让画面从首帧自然过渡到尾帧，保持主体身份一致、镜头语言连贯。",
                    "image": "https://example.com/start-frame.png",
                    "last_image": "https://example.com/end-frame.png",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true
                    }
                  }
                },
                "multiReferenceVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "保持同一角色的脸、服装和身份一致，在雨夜小巷中向前行走。",
                    "images": [
                      "https://example.com/ref-1.png",
                      "https://example.com/ref-2.png"
                    ],
                    "size": "1080p",
                    "aspect_ratio": "9:16",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true,
                      "seed": 11
                    }
                  }
                },
                "videoContinuation": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "自然续接原视频中的动作，并保持同样的场景风格。",
                    "video": "https://example.com/source.mp4",
                    "size": "720p",
                    "duration": 6,
                    "extra_body": {
                      "negative_prompt": "闪烁, 故障感",
                      "seed": 9
                    }
                  }
                },
                "grokVideoEdit": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Keep the same subject and make the camera push in slowly.",
                    "video": "https://example.com/source.mp4",
                    "extra_body": {
                      "operation": "edit_video",
                      "input_video_seconds": 8
                    }
                  }
                },
                "grokVideoExtend": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Continue the motion naturally with the same lighting and style.",
                    "video": "https://example.com/source.mp4",
                    "duration": 6,
                    "extra_body": {
                      "operation": "video_extend",
                      "input_video_seconds": 8
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoTaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/video/generations": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create video generation task",
        "operationId": "createVideoGeneration",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "textToVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "黄金时刻的街头采访镜头，镜头轻微手持晃动，人物真实发声，环境中有自然城市背景音。",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 8,
                    "extra_body": {
                      "generate_audio": true,
                      "negative_prompt": "水印, 模糊",
                      "seed": 7
                    }
                  }
                },
                "imageToVideo": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "商品在干净的摄影棚桌面上缓慢旋转，伴随柔和反射光。",
                    "image": "https://example.com/keyframe.png",
                    "size": "720p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": false,
                      "negative_prompt": "伪影, 抖动"
                    }
                  }
                },
                "firstLastFrame": {
                  "value": {
                    "model": "veo3.1-fast-video-1080p",
                    "prompt": "让画面从首帧自然过渡到尾帧，保持主体身份一致、镜头语言连贯。",
                    "image": "https://example.com/start-frame.png",
                    "last_image": "https://example.com/end-frame.png",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true
                    }
                  }
                },
                "multiReferenceVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "保持同一角色的脸、服装和身份一致，在雨夜小巷中向前行走。",
                    "images": [
                      "https://example.com/ref-1.png",
                      "https://example.com/ref-2.png"
                    ],
                    "size": "1080p",
                    "aspect_ratio": "9:16",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true,
                      "seed": 11
                    }
                  }
                },
                "videoContinuation": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "自然续接原视频中的动作，并保持同样的场景风格。",
                    "video": "https://example.com/source.mp4",
                    "size": "720p",
                    "duration": 6,
                    "extra_body": {
                      "negative_prompt": "闪烁, 故障感",
                      "seed": 9
                    }
                  }
                },
                "grokVideoEdit": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Keep the same subject and make the camera push in slowly.",
                    "video": "https://example.com/source.mp4",
                    "extra_body": {
                      "operation": "edit_video",
                      "input_video_seconds": 8
                    }
                  }
                },
                "grokVideoExtend": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Continue the motion naturally with the same lighting and style.",
                    "video": "https://example.com/source.mp4",
                    "duration": 6,
                    "extra_body": {
                      "operation": "video_extend",
                      "input_video_seconds": 8
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoTaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/videos/generations": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create video generation task",
        "operationId": "createVideosGeneration",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "textToVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "黄金时刻的街头采访镜头，镜头轻微手持晃动，人物真实发声，环境中有自然城市背景音。",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 8,
                    "extra_body": {
                      "generate_audio": true,
                      "negative_prompt": "水印, 模糊",
                      "seed": 7
                    }
                  }
                },
                "imageToVideo": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "商品在干净的摄影棚桌面上缓慢旋转，伴随柔和反射光。",
                    "image": "https://example.com/keyframe.png",
                    "size": "720p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": false,
                      "negative_prompt": "伪影, 抖动"
                    }
                  }
                },
                "firstLastFrame": {
                  "value": {
                    "model": "veo3.1-fast-video-1080p",
                    "prompt": "让画面从首帧自然过渡到尾帧，保持主体身份一致、镜头语言连贯。",
                    "image": "https://example.com/start-frame.png",
                    "last_image": "https://example.com/end-frame.png",
                    "size": "1080p",
                    "aspect_ratio": "16:9",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true
                    }
                  }
                },
                "multiReferenceVideo": {
                  "value": {
                    "model": "veo3.1-video-1080p",
                    "prompt": "保持同一角色的脸、服装和身份一致，在雨夜小巷中向前行走。",
                    "images": [
                      "https://example.com/ref-1.png",
                      "https://example.com/ref-2.png"
                    ],
                    "size": "1080p",
                    "aspect_ratio": "9:16",
                    "duration": 6,
                    "extra_body": {
                      "generate_audio": true,
                      "seed": 11
                    }
                  }
                },
                "videoContinuation": {
                  "value": {
                    "model": "veo3.1-video-720p",
                    "prompt": "自然续接原视频中的动作，并保持同样的场景风格。",
                    "video": "https://example.com/source.mp4",
                    "size": "720p",
                    "duration": 6,
                    "extra_body": {
                      "negative_prompt": "闪烁, 故障感",
                      "seed": 9
                    }
                  }
                },
                "grokVideoEdit": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Keep the same subject and make the camera push in slowly.",
                    "video": "https://example.com/source.mp4",
                    "extra_body": {
                      "operation": "edit_video",
                      "input_video_seconds": 8
                    }
                  }
                },
                "grokVideoExtend": {
                  "value": {
                    "model": "grok-imagine",
                    "prompt": "Continue the motion naturally with the same lighting and style.",
                    "video": "https://example.com/source.mp4",
                    "duration": 6,
                    "extra_body": {
                      "operation": "video_extend",
                      "input_video_seconds": 8
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoTaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/audio/generations": {
      "post": {
        "tags": [
          "Generations"
        ],
        "summary": "Create audio generation task",
        "operationId": "createAudioGeneration",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGenerationRequest"
              },
              "examples": {
                "textToAudio": {
                  "value": {
                    "model": "tts-standard",
                    "prompt": "Warm Mandarin narration for a product launch video.",
                    "voice": "alloy",
                    "response_format": "mp3"
                  }
                },
                "audioToAudio": {
                  "value": {
                    "model": "tts-standard",
                    "prompt": "Clean background noise and keep the original speaker tone.",
                    "audio": "https://example.com/source.wav",
                    "response_format": "wav"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Task accepted",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-task-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-idempotent-replay": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                },
                "description": "Only returned when the same x-idempotency-key replays an existing async task without charging again."
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatus"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/videos/{taskId}": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get video generation task status",
        "operationId": "getVideoTaskStatus",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Video task ID returned by POST /v1/videos or compatible video generation endpoints."
          },
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Video task status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoTaskStatus"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/videos/{taskId}/content": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get video task content",
        "operationId": "getVideoTaskContent",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Video task ID returned by POST /v1/videos."
          },
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Video file stream",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tasks/{taskId}": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get async task status",
        "operationId": "getTaskStatus",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Task ID returned by an async generation endpoint."
          },
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "responses": {
          "200": {
            "description": "Task status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatus"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/requests/{requestId}": {
      "get": {
        "tags": [
          "Usage"
        ],
        "summary": "Get one request by request ID",
        "operationId": "getRequestDetail",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "x-request-id returned by the API response or provided by your own system."
          }
        ],
        "responses": {
          "200": {
            "description": "Single request diagnostics, billing, task, and public error detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestDetail"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/estimates": {
      "post": {
        "tags": [
          "Estimates"
        ],
        "summary": "Estimate request cost",
        "operationId": "estimateCost",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/RequestId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CostEstimateRequest"
              },
              "examples": {
                "chat": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "input_tokens": 1200,
                    "output_tokens": 600
                  }
                },
                "image": {
                  "value": {
                    "model": "gpt-image-2-origin",
                    "prompt": "A snowy morning at the Forbidden City, cinematic lighting.",
                    "n": 2,
                    "size": "1024x1024"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Estimated charge without submitting a model request",
            "headers": {
              "x-request-id": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-wallet": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "unified"
                  ]
                }
              },
              "x-uniall-estimated-charge-usd": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-limit": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-remaining": {
                "schema": {
                  "type": "string"
                }
              },
              "x-uniall-concurrency-source": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostEstimateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "tags": [
          "Usage"
        ],
        "summary": "List usage records",
        "operationId": "listUsage",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "account",
                "api_key",
                "project"
              ]
            },
            "description": "Usage scope."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Maximum number of records."
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter by success, failed, or limited."
          },
          {
            "name": "model",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Filter by model ID."
          },
          {
            "name": "start_time",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Usage analytics and records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "UNIALL_API_KEY"
      }
    },
    "parameters": {
      "RequestId": {
        "name": "x-request-id",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Recommended idempotent request ID from your own system. It is used for billing, tracing, support, and task lookup."
      },
      "IdempotencyKey": {
        "name": "x-idempotency-key",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string",
          "maxLength": 160
        },
        "description": "Optional key for async generation requests. Reusing the same key returns the original task and does not create a duplicate task or charge again."
      }
    },
    "schemas": {
      "ModelList": {
        "type": "object",
        "required": [
          "object",
          "data"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          }
        }
      },
      "Model": {
        "type": "object",
        "required": [
          "id",
          "object"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "gpt-image-2-origin",
              "grok-imagine",
              "grok-imagine-image",
              "grok-imagine-image-quality",
              "happy-horse-720p",
              "happy-horse-1080p",
              "happy-horse-edit-720p",
              "happy-horse-edit-1080p",
              "kling-v3-std-silent",
              "kling-v3-pro-audio",
              "kling-v3-pro-silent",
              "kling-v3-std-audio",
              "NanoBanana2-1K",
              "NanoBanana2-0.5K",
              "NanoBanana2-2K",
              "NanoBanana2-4K",
              "NanoBananaPro-1K",
              "NanoBananaPro-2K",
              "NanoBananaPro-4K",
              "seedance2.0-720p",
              "seedance2.0-1080p",
              "seedance2.0-480p",
              "seedance2.0-fast-720p",
              "seedance2.0-fast-480p",
              "sora2",
              "sora2-pro-720p",
              "sora2-pro-1080p",
              "sora2-pro-true-1080p",
              "veo3.1-fast-video-720p",
              "veo3.1-fast-video-1080p",
              "veo3.1-fast-video-4k",
              "veo3.1-video-720p",
              "veo3.1-video-1080p",
              "veo3.1-video-4k",
              "viduq3p-1080p",
              "viduq3p-540p",
              "viduq3p-720p",
              "viduq3t-1080p",
              "viduq3t-540p",
              "viduq3t-720p",
              "wan2.2-animate-480p",
              "wan2.2-animate-720p",
              "wan2.6-i2v-flash-1080p-audio",
              "wan2.6-i2v-flash-1080p-silent",
              "wan2.6-i2v-flash-720p-audio",
              "wan2.6-i2v-flash-720p-silent",
              "wan2.6-r2v-1080p",
              "wan2.6-r2v-720p",
              "wan2.6-r2v-flash-1080p-audio",
              "wan2.6-r2v-flash-1080p-silent",
              "wan2.6-r2v-flash-720p-audio",
              "wan2.6-r2v-flash-720p-silent",
              "wan2.6-video-1080p",
              "wan2.6-video-720p"
            ]
          },
          "object": {
            "type": "string",
            "example": "model"
          },
          "created": {
            "type": "integer"
          },
          "owned_by": {
            "type": "string",
            "example": "uniall"
          },
          "type": {
            "type": "string",
            "enum": [
              "chat",
              "image",
              "video",
              "audio"
            ]
          },
          "description": {
            "type": "string"
          },
          "pricing": {
            "type": "object",
            "additionalProperties": true
          },
          "price_profiles": {
            "$ref": "#/components/schemas/PriceProfiles"
          },
          "pricing_profiles": {
            "$ref": "#/components/schemas/PriceProfiles"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "required_parameters": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "ui_schema": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
          },
          "input_schema": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true,
            "description": "Exact upstream input JSON schema when available. Returned on model detail responses."
          },
          "request_interface": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true,
            "description": "Normalized request fields, modes, endpoint, and extra_body support for dynamic models."
          },
          "cend_ready": {
            "type": "boolean"
          },
          "source_provider_id": {
            "type": "string"
          },
          "provider_catalog": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "PricingCatalog": {
        "type": "object",
        "required": [
          "object",
          "currency",
          "generated_at",
          "data"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "pricing.catalog"
          },
          "currency": {
            "type": "string",
            "example": "USD"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "billing_note": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PricingItem"
            }
          },
          "summary": {
            "type": "object",
            "additionalProperties": true
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "PricingItem": {
        "type": "object",
        "required": [
          "model",
          "display_name",
          "type",
          "billing_unit",
          "price"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "billing_unit": {
            "type": "string"
          },
          "billing_unit_label": {
            "type": "string"
          },
          "price": {
            "type": "object",
            "additionalProperties": true
          },
          "price_profiles": {
            "$ref": "#/components/schemas/PriceProfiles"
          },
          "pricing_profiles": {
            "$ref": "#/components/schemas/PriceProfiles"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "required_parameters": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "ui_schema": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
          },
          "cend_ready": {
            "type": "boolean"
          },
          "route_health": {
            "type": "object",
            "additionalProperties": true
          },
          "failure_settlement": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "PriceProfiles": {
        "type": "object",
        "description": "Unified sale prices by audience. user is C-end retail, api is direct developer API, partner is reseller/channel API.",
        "required": [
          "user",
          "api",
          "partner"
        ],
        "properties": {
          "user": {
            "$ref": "#/components/schemas/PriceProfile"
          },
          "api": {
            "$ref": "#/components/schemas/PriceProfile"
          },
          "partner": {
            "$ref": "#/components/schemas/PriceProfile"
          }
        }
      },
      "PriceProfile": {
        "type": "object",
        "nullable": true,
        "properties": {
          "unitPriceUsd": {
            "type": "number"
          },
          "inputPricePer1kUsd": {
            "type": "number"
          },
          "outputPricePer1kUsd": {
            "type": "number"
          },
          "resolutionPrices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "resolution": {
                  "type": "string"
                },
                "unitPriceUsd": {
                  "type": "number"
                },
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            }
          },
          "estimatedChargeUsd": {
            "type": "number"
          },
          "billingUnit": {
            "type": "string"
          },
          "priceContext": {
            "type": "string",
            "enum": [
              "user",
              "api",
              "partner"
            ]
          },
          "pricingRuleId": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "CapabilitiesResponse": {
        "type": "object",
        "required": [
          "object",
          "version",
          "generated_at",
          "platform",
          "auth",
          "endpoints",
          "modalities",
          "features",
          "limits",
          "links"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "capabilities"
          },
          "version": {
            "type": "string",
            "example": "2026.05"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "platform": {
            "type": "object",
            "additionalProperties": true
          },
          "auth": {
            "type": "object",
            "additionalProperties": true
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "method",
                "path",
                "auth",
                "category"
              ],
              "properties": {
                "method": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "auth": {
                  "type": "boolean"
                },
                "category": {
                  "type": "string"
                },
                "idempotency": {
                  "type": "boolean"
                },
                "streaming": {
                  "type": "boolean"
                },
                "async": {
                  "type": "boolean"
                }
              }
            }
          },
          "modalities": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type",
                "models"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "chat",
                    "image",
                    "video",
                    "audio"
                  ]
                },
                "models": {
                  "type": "integer"
                },
                "sync": {
                  "type": "boolean"
                },
                "async": {
                  "type": "boolean"
                },
                "streaming": {
                  "type": "boolean"
                },
                "idempotency": {
                  "type": "boolean"
                },
                "planned": {
                  "type": "boolean"
                }
              }
            }
          },
          "features": {
            "type": "object",
            "additionalProperties": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": true
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "RateLimitPolicy": {
        "type": "object",
        "required": [
          "object",
          "version",
          "generated_at",
          "wallet",
          "tiers",
          "headers",
          "policy_resolution",
          "links"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "rate_limit.policy"
          },
          "version": {
            "type": "string",
            "example": "2026.05"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "wallet": {
            "type": "string",
            "example": "unified"
          },
          "recharge_window_days": {
            "type": "integer",
            "example": 30
          },
          "tiers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "tier_id",
                "name",
                "min_recharge_usd_30d",
                "max_concurrency"
              ],
              "properties": {
                "tier_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "min_recharge_usd_30d": {
                  "type": "number"
                },
                "max_concurrency": {
                  "type": "integer"
                },
                "rpm": {
                  "type": "integer",
                  "nullable": true
                },
                "tpm": {
                  "type": "integer",
                  "nullable": true
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "headers": {
            "type": "object",
            "additionalProperties": true
          },
          "policy_resolution": {
            "type": "object",
            "additionalProperties": true
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "AccountResponse": {
        "type": "object",
        "required": [
          "object",
          "wallet",
          "generated_at",
          "balance",
          "concurrency",
          "api_key",
          "models"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "account"
          },
          "wallet": {
            "type": "string",
            "example": "unified"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "account": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "tenant_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "api_key_id": {
                "type": "string"
              }
            }
          },
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            }
          },
          "tenant": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            }
          },
          "project": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            }
          },
          "api_key": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "masked_key": {
                "type": "string"
              },
              "environment": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "universal_models": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "last_used_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          },
          "balance": {
            "type": "object",
            "properties": {
              "usd": {
                "type": "number"
              },
              "cny": {
                "type": "number"
              },
              "frozen_usd": {
                "type": "number"
              },
              "frozen_cny": {
                "type": "number"
              },
              "shared": {
                "type": "boolean"
              }
            }
          },
          "concurrency": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              },
              "recharge_usd_30d": {
                "type": "number"
              },
              "tenant_cap": {
                "type": "integer"
              }
            }
          },
          "budgets": {
            "type": "object",
            "additionalProperties": true
          },
          "models": {
            "type": "object",
            "properties": {
              "available": {
                "type": "integer"
              },
              "by_type": {
                "type": "object",
                "additionalProperties": {
                  "type": "integer"
                }
              },
              "default_chat_model": {
                "type": "string"
              },
              "default_image_model": {
                "type": "string"
              },
              "default_video_model": {
                "type": "string"
              }
            }
          },
          "usage_30d": {
            "type": "object",
            "additionalProperties": true
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "ReadinessResponse": {
        "type": "object",
        "required": [
          "object",
          "version",
          "wallet",
          "generated_at",
          "status",
          "score",
          "checks",
          "links"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "readiness"
          },
          "version": {
            "type": "string",
            "example": "2026.05"
          },
          "wallet": {
            "type": "string",
            "example": "unified"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "improving",
              "blocked"
            ]
          },
          "score": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "summary": {
            "type": "string"
          },
          "account": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "tenant_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "project_name": {
                "type": "string"
              },
              "api_key_id": {
                "type": "string"
              }
            }
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "status",
                "required",
                "description"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ready",
                    "advice",
                    "action"
                  ]
                },
                "required": {
                  "type": "boolean"
                },
                "metric": {},
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "blockers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "next_actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "action": {
                  "type": "string"
                },
                "link": {
                  "type": "string"
                }
              }
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "ChatCompletionRequest": {
        "type": "object",
        "required": [
          "model",
          "messages"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "gpt-image-2-origin",
              "grok-imagine",
              "grok-imagine-image",
              "grok-imagine-image-quality",
              "happy-horse-720p",
              "happy-horse-1080p",
              "happy-horse-edit-720p",
              "happy-horse-edit-1080p",
              "kling-v3-std-silent",
              "kling-v3-pro-audio",
              "kling-v3-pro-silent",
              "kling-v3-std-audio",
              "NanoBanana2-1K",
              "NanoBanana2-0.5K",
              "NanoBanana2-2K",
              "NanoBanana2-4K",
              "NanoBananaPro-1K",
              "NanoBananaPro-2K",
              "NanoBananaPro-4K",
              "seedance2.0-720p",
              "seedance2.0-1080p",
              "seedance2.0-480p",
              "seedance2.0-fast-720p",
              "seedance2.0-fast-480p",
              "sora2",
              "sora2-pro-720p",
              "sora2-pro-1080p",
              "sora2-pro-true-1080p",
              "veo3.1-fast-video-720p",
              "veo3.1-fast-video-1080p",
              "veo3.1-fast-video-4k",
              "veo3.1-video-720p",
              "veo3.1-video-1080p",
              "veo3.1-video-4k",
              "viduq3p-1080p",
              "viduq3p-540p",
              "viduq3p-720p",
              "viduq3t-1080p",
              "viduq3t-540p",
              "viduq3t-720p",
              "wan2.2-animate-480p",
              "wan2.2-animate-720p",
              "wan2.6-i2v-flash-1080p-audio",
              "wan2.6-i2v-flash-1080p-silent",
              "wan2.6-i2v-flash-720p-audio",
              "wan2.6-i2v-flash-720p-silent",
              "wan2.6-r2v-1080p",
              "wan2.6-r2v-720p",
              "wan2.6-r2v-flash-1080p-audio",
              "wan2.6-r2v-flash-1080p-silent",
              "wan2.6-r2v-flash-720p-audio",
              "wan2.6-r2v-flash-720p-silent",
              "wan2.6-video-1080p",
              "wan2.6-video-720p"
            ]
          },
          "messages": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ChatMessage"
            }
          },
          "stream": {
            "type": "boolean",
            "default": false
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 1
          },
          "extra_body": {
            "type": "object",
            "additionalProperties": true,
            "description": "Provider-agnostic advanced options for image/video models."
          }
        }
      },
      "ChatMessage": {
        "type": "object",
        "required": [
          "role",
          "content"
        ],
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "system",
              "user",
              "assistant",
              "tool"
            ]
          },
          "content": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MessageContentPart"
                }
              }
            ]
          }
        }
      },
      "MessageContentPart": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text",
              "image_url"
            ]
          },
          "text": {
            "type": "string"
          },
          "image_url": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ChatCompletionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string",
            "example": "chat.completion"
          },
          "created": {
            "type": "integer"
          },
          "model": {
            "type": "string"
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "message": {
                  "$ref": "#/components/schemas/ChatMessage"
                },
                "finish_reason": {
                  "type": "string"
                }
              }
            }
          },
          "media": {
            "type": "object",
            "properties": {
              "outputs": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "billing": {
            "$ref": "#/components/schemas/Billing"
          }
        }
      },
      "AsyncGenerationRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "gpt-image-2-origin",
              "grok-imagine",
              "grok-imagine-image",
              "grok-imagine-image-quality",
              "happy-horse-720p",
              "happy-horse-1080p",
              "happy-horse-edit-720p",
              "happy-horse-edit-1080p",
              "kling-v3-std-silent",
              "kling-v3-pro-audio",
              "kling-v3-pro-silent",
              "kling-v3-std-audio",
              "NanoBanana2-1K",
              "NanoBanana2-0.5K",
              "NanoBanana2-2K",
              "NanoBanana2-4K",
              "NanoBananaPro-1K",
              "NanoBananaPro-2K",
              "NanoBananaPro-4K",
              "seedance2.0-720p",
              "seedance2.0-1080p",
              "seedance2.0-480p",
              "seedance2.0-fast-720p",
              "seedance2.0-fast-480p",
              "sora2",
              "sora2-pro-720p",
              "sora2-pro-1080p",
              "sora2-pro-true-1080p",
              "veo3.1-fast-video-720p",
              "veo3.1-fast-video-1080p",
              "veo3.1-fast-video-4k",
              "veo3.1-video-720p",
              "veo3.1-video-1080p",
              "veo3.1-video-4k",
              "viduq3p-1080p",
              "viduq3p-540p",
              "viduq3p-720p",
              "viduq3t-1080p",
              "viduq3t-540p",
              "viduq3t-720p",
              "wan2.2-animate-480p",
              "wan2.2-animate-720p",
              "wan2.6-i2v-flash-1080p-audio",
              "wan2.6-i2v-flash-1080p-silent",
              "wan2.6-i2v-flash-720p-audio",
              "wan2.6-i2v-flash-720p-silent",
              "wan2.6-r2v-1080p",
              "wan2.6-r2v-720p",
              "wan2.6-r2v-flash-1080p-audio",
              "wan2.6-r2v-flash-1080p-silent",
              "wan2.6-r2v-flash-720p-audio",
              "wan2.6-r2v-flash-720p-silent",
              "wan2.6-video-1080p",
              "wan2.6-video-720p"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "n": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 1
          },
          "num_images": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "description": "Alias for n on media task endpoints."
          },
          "size": {
            "type": "string",
            "example": "1024x1024"
          },
          "resolution": {
            "type": "string",
            "example": "1k",
            "description": "Resolution tier for image task models such as grok-imagine-image."
          },
          "quality": {
            "type": "string",
            "example": "2k"
          },
          "aspect_ratio": {
            "type": "string",
            "example": "16:9"
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30
          },
          "seconds": {
            "type": "string",
            "description": "OpenAI-compatible duration alias. Do not send together with duration."
          },
          "task_type": {
            "type": "string",
            "enum": [
              "text2image",
              "image2image"
            ],
            "description": "Image task mode for /v1/images/tasks."
          },
          "output_format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ]
          },
          "response_format": {
            "type": "string",
            "enum": [
              "url",
              "b64_json"
            ]
          },
          "generation_mode": {
            "type": "string",
            "description": "Optional request mode for dynamic fal.ai models. Use one of the model metadata modes from /v1/models, for example text_to_video, image_to_video, first_last_frame, video_to_video, text_to_audio, or audio_to_audio."
          },
          "image": {
            "type": "string",
            "format": "uri",
            "description": "Single source or start-frame image URL for image-to-video and first/last-frame video generation."
          },
          "images": {
            "type": "array",
            "minItems": 2,
            "maxItems": 3,
            "items": {
              "type": "string",
              "format": "uri"
            },
            "description": "Two to three reference image URLs for multi-reference video generation."
          },
          "last_image": {
            "type": "string",
            "format": "uri",
            "description": "Target end-frame image URL used together with image."
          },
          "video": {
            "type": "string",
            "format": "uri",
            "description": "Source video URL for video continuation or video editing."
          },
          "reference_image_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "extra_body": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "operation": {
                "type": "string",
                "enum": [
                  "text_to_video",
                  "image_to_video",
                  "reference_to_video",
                  "edit_video",
                  "video_extend"
                ]
              },
              "input_video_seconds": {
                "type": "integer",
                "minimum": 1
              },
              "generate_audio": {
                "type": "boolean"
              },
              "negative_prompt": {
                "type": "string"
              },
              "seed": {
                "type": "string"
              }
            }
          }
        }
      },
      "ImageTaskStatus": {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "succeeded",
              "failed",
              "canceled",
              "refunded"
            ]
          },
          "progress": {
            "type": "string",
            "example": "50%"
          },
          "result_url": {
            "type": "string",
            "format": "uri"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "task_type": {
                "type": "string",
                "enum": [
                  "text2image",
                  "image2image"
                ]
              },
              "result_count": {
                "type": "integer"
              },
              "result_urls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "failure_reason": {
            "type": "string",
            "nullable": true
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "object",
            "nullable": true
          }
        }
      },
      "VideoTaskStatus": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "task_id": {
            "type": "string"
          },
          "object": {
            "type": "string",
            "example": "video"
          },
          "model": {
            "type": "string",
            "example": "grok-imagine"
          },
          "prompt": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "in_progress",
              "completed",
              "failed",
              "canceled",
              "refunded"
            ]
          },
          "seconds": {
            "type": "string",
            "example": "6"
          },
          "duration": {
            "type": "string",
            "example": "6"
          },
          "progress": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "video_url": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail_url": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "nullable": true
              },
              "duration": {
                "type": "integer",
                "nullable": true
              },
              "seconds": {
                "type": "string",
                "nullable": true
              },
              "aspect_ratio": {
                "type": "string"
              },
              "task_type": {
                "type": "string"
              }
            }
          },
          "failure_reason": {
            "type": "string",
            "nullable": true
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "integer"
          },
          "error": {
            "type": "object",
            "nullable": true
          }
        }
      },
      "TaskStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "task_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "canceled",
              "refunded"
            ]
          },
          "progress": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "model": {
            "type": "string"
          },
          "output": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "result_url": {
            "type": "string",
            "format": "uri"
          },
          "image_url": {
            "type": "string",
            "format": "uri"
          },
          "video_url": {
            "type": "string",
            "format": "uri"
          },
          "audio_url": {
            "type": "string",
            "format": "uri"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "billing": {
            "$ref": "#/components/schemas/Billing"
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string"
              }
            }
          }
        }
      },
      "CostEstimateRequest": {
        "type": "object",
        "required": [
          "model"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "gpt-image-2-origin",
              "grok-imagine",
              "grok-imagine-image",
              "grok-imagine-image-quality",
              "happy-horse-720p",
              "happy-horse-1080p",
              "happy-horse-edit-720p",
              "happy-horse-edit-1080p",
              "kling-v3-std-silent",
              "kling-v3-pro-audio",
              "kling-v3-pro-silent",
              "kling-v3-std-audio",
              "NanoBanana2-1K",
              "NanoBanana2-0.5K",
              "NanoBanana2-2K",
              "NanoBanana2-4K",
              "NanoBananaPro-1K",
              "NanoBananaPro-2K",
              "NanoBananaPro-4K",
              "seedance2.0-720p",
              "seedance2.0-1080p",
              "seedance2.0-480p",
              "seedance2.0-fast-720p",
              "seedance2.0-fast-480p",
              "sora2",
              "sora2-pro-720p",
              "sora2-pro-1080p",
              "sora2-pro-true-1080p",
              "veo3.1-fast-video-720p",
              "veo3.1-fast-video-1080p",
              "veo3.1-fast-video-4k",
              "veo3.1-video-720p",
              "veo3.1-video-1080p",
              "veo3.1-video-4k",
              "viduq3p-1080p",
              "viduq3p-540p",
              "viduq3p-720p",
              "viduq3t-1080p",
              "viduq3t-540p",
              "viduq3t-720p",
              "wan2.2-animate-480p",
              "wan2.2-animate-720p",
              "wan2.6-i2v-flash-1080p-audio",
              "wan2.6-i2v-flash-1080p-silent",
              "wan2.6-i2v-flash-720p-audio",
              "wan2.6-i2v-flash-720p-silent",
              "wan2.6-r2v-1080p",
              "wan2.6-r2v-720p",
              "wan2.6-r2v-flash-1080p-audio",
              "wan2.6-r2v-flash-1080p-silent",
              "wan2.6-r2v-flash-720p-audio",
              "wan2.6-r2v-flash-720p-silent",
              "wan2.6-video-1080p",
              "wan2.6-video-720p"
            ]
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatMessage"
            },
            "description": "Optional chat messages used to estimate input tokens."
          },
          "prompt": {
            "type": "string",
            "description": "Prompt for image, video, audio, or simple text estimates."
          },
          "input_tokens": {
            "type": "integer",
            "minimum": 1
          },
          "output_tokens": {
            "type": "integer",
            "minimum": 0
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 0
          },
          "n": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 1
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "duration_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1800
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1800
          },
          "size": {
            "type": "string"
          },
          "quality": {
            "type": "string"
          }
        }
      },
      "CostEstimateResponse": {
        "type": "object",
        "required": [
          "object",
          "model",
          "wallet",
          "billing_unit",
          "estimated_charge_usd"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "cost.estimate"
          },
          "model": {
            "type": "string"
          },
          "model_name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "chat",
              "image",
              "video",
              "audio"
            ]
          },
          "wallet": {
            "type": "string",
            "example": "unified"
          },
          "billing_unit": {
            "type": "string"
          },
          "price_context": {
            "type": "string",
            "enum": [
              "user",
              "api",
              "partner"
            ]
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "duration_seconds": {
            "type": "integer"
          },
          "units": {
            "type": "number"
          },
          "unit_price_usd": {
            "type": "number"
          },
          "estimated_charge_usd": {
            "type": "number"
          },
          "currency": {
            "type": "string",
            "example": "USD"
          },
          "price_source": {
            "type": "string"
          },
          "pricing_rule_id": {
            "type": "string"
          },
          "failure_settlement": {
            "type": "object",
            "properties": {
              "rule": {
                "type": "string",
                "example": "model_configuration"
              },
              "description": {
                "type": "string"
              }
            }
          },
          "concurrency": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              },
              "recharge_usd_30d": {
                "type": "number"
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "UsageResponse": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "object",
            "additionalProperties": true
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageRecord"
            }
          }
        }
      },
      "UsageRecord": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string"
          },
          "taskId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "inputTokens": {
            "type": "integer"
          },
          "outputTokens": {
            "type": "integer"
          },
          "userChargeUsd": {
            "type": "number"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RequestDetail": {
        "type": "object",
        "required": [
          "object",
          "request_id",
          "status",
          "usage",
          "billing"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "request"
          },
          "id": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          },
          "status_code": {
            "type": "integer"
          },
          "model": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          },
          "provider": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "mode": {
                "type": "string",
                "example": "gateway"
              }
            }
          },
          "usage": {
            "$ref": "#/components/schemas/UsageRecord"
          },
          "task": {
            "$ref": "#/components/schemas/TaskStatus"
          },
          "billing": {
            "type": "object",
            "properties": {
              "wallet": {
                "type": "string",
                "example": "unified"
              },
              "charge_usd": {
                "type": "number"
              },
              "input_tokens": {
                "type": "integer"
              },
              "output_tokens": {
                "type": "integer"
              },
              "total_tokens": {
                "type": "integer"
              }
            }
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "trace": {
            "type": "object",
            "properties": {
              "api_key_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "task_id": {
                "type": "string",
                "nullable": true
              },
              "latency_ms": {
                "type": "integer"
              },
              "policy_source": {
                "type": "string",
                "example": "platform"
              },
              "routing_policy": {
                "type": "string",
                "example": "platform"
              },
              "headers": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "type": "string",
                    "example": "x-request-id"
                  },
                  "task_id": {
                    "type": "string",
                    "nullable": true,
                    "example": "x-uniall-task-id"
                  },
                  "wallet": {
                    "type": "string",
                    "example": "x-uniall-wallet"
                  },
                  "request_status": {
                    "type": "string",
                    "example": "x-uniall-request-status"
                  }
                }
              }
            },
            "additionalProperties": true
          },
          "recommendations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "next_actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "support": {
            "type": "object",
            "properties": {
              "lookup_fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    }
                  }
                }
              },
              "message": {
                "type": "string"
              }
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            }
          }
        }
      },
      "ServiceStatus": {
        "type": "object",
        "required": [
          "object",
          "generatedAt",
          "overallStatus",
          "title",
          "summary",
          "metrics",
          "components"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "service.status"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "overallStatus": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "incident"
            ]
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "metrics": {
            "type": "object",
            "properties": {
              "successRate": {
                "type": "number"
              },
              "activeApiRequests": {
                "type": "integer"
              },
              "queuedTasks": {
                "type": "integer"
              },
              "asyncPending": {
                "type": "integer"
              },
              "webhookBacklog": {
                "type": "integer"
              },
              "failedTasks24h": {
                "type": "integer"
              },
              "onlineModelCount": {
                "type": "integer"
              },
              "providerCount": {
                "type": "integer"
              },
              "healthyProviderCount": {
                "type": "integer"
              },
              "degradedProviderCount": {
                "type": "integer"
              },
              "degradedProviderCapacityPercent": {
                "type": "number"
              },
              "criticalProviderCapacityPercent": {
                "type": "number"
              }
            },
            "additionalProperties": true
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusComponent"
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusProvider"
            }
          },
          "incidents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEvent"
            }
          },
          "maintenance": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEvent"
            }
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusHistoryBucket"
            }
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string"
              },
              "status_page": {
                "type": "string"
              }
            }
          }
        }
      },
      "StatusComponent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "incident"
            ]
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "StatusProvider": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "incident"
            ]
          },
          "successRate": {
            "type": "number"
          },
          "p95LatencyMs": {
            "type": "integer"
          },
          "maxConcurrency": {
            "type": "integer"
          }
        }
      },
      "StatusEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "level": {
            "type": "string",
            "enum": [
              "info",
              "warning",
              "critical"
            ]
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "active",
              "scheduled",
              "finished",
              "investigating",
              "monitoring"
            ]
          },
          "startAt": {
            "type": "string",
            "format": "date-time"
          },
          "endAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "StatusHistoryBucket": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "label": {
            "type": "string"
          },
          "requests": {
            "type": "integer"
          },
          "success": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "limited": {
            "type": "integer"
          },
          "successRate": {
            "type": "number"
          },
          "p95LatencyMs": {
            "type": "integer"
          },
          "status": {
            "type": "string",
            "enum": [
              "operational",
              "degraded",
              "incident"
            ]
          }
        }
      },
      "Billing": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "charge_usd": {
            "type": "number"
          },
          "wallet": {
            "type": "string",
            "example": "unified"
          },
          "provider": {
            "type": "string"
          },
          "policy_source": {
            "type": "string",
            "example": "platform"
          },
          "requested_model_id": {
            "type": "string"
          }
        }
      },
      "WebhookEvent": {
        "type": "object",
        "description": "Event delivered to your configured webhook endpoint. Verify the signature before processing.",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "api.request.success",
              "api.request.failed",
              "api.task.succeeded",
              "api.task.failed"
            ]
          },
          "created": {
            "type": "integer"
          },
          "data": {
            "type": "object",
            "properties": {
              "requestId": {
                "type": "string"
              },
              "taskId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "modelId": {
                "type": "string"
              },
              "output": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "billing": {
                "$ref": "#/components/schemas/Billing"
              },
              "error": {
                "$ref": "#/components/schemas/ErrorDetail"
              }
            }
          }
        }
      },
      "ErrorCatalog": {
        "type": "object",
        "required": [
          "object",
          "version",
          "summary",
          "data"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "error_catalog"
          },
          "version": {
            "type": "string"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "baseUrl": {
            "type": "string"
          },
          "summary": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer"
              },
              "retryable": {
                "type": "integer"
              },
              "highSeverity": {
                "type": "integer"
              },
              "byCategory": {
                "type": "object",
                "additionalProperties": {
                  "type": "integer"
                }
              }
            }
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorCatalogItem"
            }
          },
          "support": {
            "type": "object",
            "additionalProperties": true
          },
          "retryPolicy": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ErrorDetailResponse": {
        "type": "object",
        "required": [
          "object",
          "version",
          "data"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "error_detail"
          },
          "version": {
            "type": "string"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "baseUrl": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ErrorCatalogItem"
          },
          "related": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "httpStatus": {
                  "type": "integer"
                },
                "docsPath": {
                  "type": "string"
                }
              }
            }
          },
          "support": {
            "type": "object",
            "additionalProperties": true
          },
          "retryPolicy": {
            "type": "object",
            "additionalProperties": true
          },
          "links": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ErrorCatalogItem": {
        "type": "object",
        "required": [
          "httpStatus",
          "code",
          "title",
          "developerAction",
          "operatorAction",
          "retryable",
          "category",
          "severity"
        ],
        "properties": {
          "httpStatus": {
            "type": "integer"
          },
          "httpStatusText": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "categoryLabel": {
            "type": "string"
          },
          "categoryDescription": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "developerAction": {
            "type": "string"
          },
          "operatorAction": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          },
          "retryAfterSeconds": {
            "type": "integer",
            "nullable": true
          },
          "requestIdRequired": {
            "type": "boolean"
          },
          "docsPath": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "additionalProperties": true
          },
          "nextSteps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exampleResponse": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "ChangelogResponse": {
        "type": "object",
        "required": [
          "version",
          "generatedAt",
          "summary",
          "records"
        ],
        "properties": {
          "version": {
            "type": "string"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "summary": {
            "type": "string"
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                },
                "releasedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "type": {
                  "type": "string"
                },
                "impact": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                },
                "changes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "migration": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        }
      },
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "param": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  },
  "x-uniall": {
    "balanceMode": "unified_wallet",
    "keyPolicy": "Universal API keys can access all enabled models by default.",
    "failureSettlement": "Final failure settlement and retry behavior follows the model configuration in the admin console.",
    "generatedAt": "2026-06-17T09:35:11.545Z",
    "modelCatalog": [
      {
        "id": "gpt-image-2-origin",
        "name": "GPT Image-2",
        "type": "image",
        "price": "$0.015 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.01485,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1K",
                "unitPriceUsd": 0.01485,
                "upstreamCostUsd": 0.027,
                "suggestedRetailUsd": 0.01485,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.0451,
                "upstreamCostUsd": 0.082,
                "suggestedRetailUsd": 0.0451,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.0924,
                "upstreamCostUsd": 0.168,
                "suggestedRetailUsd": 0.0924,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.01485,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_gpt_image_2_origin_v1",
            "source": "api_model_price",
            "text": "$0.015 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "grok-imagine",
        "name": "Grok Imagine",
        "type": "video",
        "price": "$0.028 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0275,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "480p",
                "unitPriceUsd": 0.0275,
                "upstreamCostUsd": 0.05,
                "suggestedRetailUsd": 0.0275,
                "enabled": true
              },
              {
                "resolution": "720p",
                "unitPriceUsd": 0.0385,
                "upstreamCostUsd": 0.07,
                "suggestedRetailUsd": 0.0385,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0275,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_grok_imagine_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.027500 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "grok-imagine-image",
        "name": "Grok Imagine Image",
        "type": "image",
        "price": "$0.014 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.01375,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1k",
                "unitPriceUsd": 0.01375,
                "upstreamCostUsd": 0.025,
                "suggestedRetailUsd": 0.01375,
                "enabled": true
              },
              {
                "resolution": "2k",
                "unitPriceUsd": 0.03025,
                "upstreamCostUsd": 0.055,
                "suggestedRetailUsd": 0.03025,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.01375,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_grok_imagine_image_v1",
            "source": "api_model_price",
            "text": "$0.014 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "grok-imagine-image-quality",
        "name": "Grok Imagine Image Quality",
        "type": "image",
        "price": "$0.030 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.03025,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1k",
                "unitPriceUsd": 0.01925,
                "upstreamCostUsd": 0.035,
                "suggestedRetailUsd": 0.01925,
                "enabled": true
              },
              {
                "resolution": "2k",
                "unitPriceUsd": 0.04125,
                "upstreamCostUsd": 0.075,
                "suggestedRetailUsd": 0.04125,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.03025,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_grok_imagine_image_quality_v1",
            "source": "api_model_price",
            "text": "$0.030 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "happy-horse-720p",
        "name": "Happy Horse",
        "type": "video",
        "price": "$0.077 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.077,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.077,
                "upstreamCostUsd": 0.14,
                "suggestedRetailUsd": 0.077,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.154,
                "upstreamCostUsd": 0.28,
                "suggestedRetailUsd": 0.154,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.077,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_happy_horse_720p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.077000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "happy-horse-1080p",
        "name": "Happy Horse 1080p",
        "type": "video",
        "price": "$0.154 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.154,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.077,
                "upstreamCostUsd": 0.14,
                "suggestedRetailUsd": 0.077,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.154,
                "upstreamCostUsd": 0.28,
                "suggestedRetailUsd": 0.154,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.154,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_happy_horse_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.154000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "happy-horse-edit-720p",
        "name": "Happy Horse Edit",
        "type": "video",
        "price": "$0.154 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.154,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.154,
                "upstreamCostUsd": 0.28,
                "suggestedRetailUsd": 0.154,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.308,
                "upstreamCostUsd": 0.56,
                "suggestedRetailUsd": 0.308,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.154,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_happy_horse_edit_720p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.154000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "happy-horse-edit-1080p",
        "name": "Happy Horse Edit 1080p",
        "type": "video",
        "price": "$0.308 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.308,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.154,
                "upstreamCostUsd": 0.28,
                "suggestedRetailUsd": 0.154,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.308,
                "upstreamCostUsd": 0.56,
                "suggestedRetailUsd": 0.308,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.308,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_happy_horse_edit_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.308000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "kling-v3-std-silent",
        "name": "Kling V3",
        "type": "video",
        "price": "$0.046 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0462,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "standard-silent",
                "unitPriceUsd": 0.0462,
                "upstreamCostUsd": 0.084,
                "suggestedRetailUsd": 0.0462,
                "enabled": true
              },
              {
                "resolution": "standard-audio",
                "unitPriceUsd": 0.0693,
                "upstreamCostUsd": 0.126,
                "suggestedRetailUsd": 0.0693,
                "enabled": true
              },
              {
                "resolution": "pro-silent",
                "unitPriceUsd": 0.0616,
                "upstreamCostUsd": 0.112,
                "suggestedRetailUsd": 0.0616,
                "enabled": true
              },
              {
                "resolution": "pro-audio",
                "unitPriceUsd": 0.0924,
                "upstreamCostUsd": 0.168,
                "suggestedRetailUsd": 0.0924,
                "enabled": true
              },
              {
                "resolution": "4k-silent",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0462,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_kling_v3_std_silent_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.046200 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "kling-v3-pro-audio",
        "name": "Kling V3 Pro 有声",
        "type": "video",
        "price": "$0.092 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0924,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "standard-silent",
                "unitPriceUsd": 0.0462,
                "upstreamCostUsd": 0.084,
                "suggestedRetailUsd": 0.0462,
                "enabled": true
              },
              {
                "resolution": "standard-audio",
                "unitPriceUsd": 0.0693,
                "upstreamCostUsd": 0.126,
                "suggestedRetailUsd": 0.0693,
                "enabled": true
              },
              {
                "resolution": "pro-silent",
                "unitPriceUsd": 0.0616,
                "upstreamCostUsd": 0.112,
                "suggestedRetailUsd": 0.0616,
                "enabled": true
              },
              {
                "resolution": "pro-audio",
                "unitPriceUsd": 0.0924,
                "upstreamCostUsd": 0.168,
                "suggestedRetailUsd": 0.0924,
                "enabled": true
              },
              {
                "resolution": "4k-silent",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0924,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_kling_v3_pro_audio_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.092400 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "kling-v3-pro-silent",
        "name": "Kling V3 Pro 静音",
        "type": "video",
        "price": "$0.062 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0616,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "standard-silent",
                "unitPriceUsd": 0.0462,
                "upstreamCostUsd": 0.084,
                "suggestedRetailUsd": 0.0462,
                "enabled": true
              },
              {
                "resolution": "standard-audio",
                "unitPriceUsd": 0.0693,
                "upstreamCostUsd": 0.126,
                "suggestedRetailUsd": 0.0693,
                "enabled": true
              },
              {
                "resolution": "pro-silent",
                "unitPriceUsd": 0.0616,
                "upstreamCostUsd": 0.112,
                "suggestedRetailUsd": 0.0616,
                "enabled": true
              },
              {
                "resolution": "pro-audio",
                "unitPriceUsd": 0.0924,
                "upstreamCostUsd": 0.168,
                "suggestedRetailUsd": 0.0924,
                "enabled": true
              },
              {
                "resolution": "4k-silent",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0616,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_kling_v3_pro_silent_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.061600 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "kling-v3-std-audio",
        "name": "Kling V3 标准有声",
        "type": "video",
        "price": "$0.069 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0693,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "standard-silent",
                "unitPriceUsd": 0.0462,
                "upstreamCostUsd": 0.084,
                "suggestedRetailUsd": 0.0462,
                "enabled": true
              },
              {
                "resolution": "standard-audio",
                "unitPriceUsd": 0.0693,
                "upstreamCostUsd": 0.126,
                "suggestedRetailUsd": 0.0693,
                "enabled": true
              },
              {
                "resolution": "pro-silent",
                "unitPriceUsd": 0.0616,
                "upstreamCostUsd": 0.112,
                "suggestedRetailUsd": 0.0616,
                "enabled": true
              },
              {
                "resolution": "pro-audio",
                "unitPriceUsd": 0.0924,
                "upstreamCostUsd": 0.168,
                "suggestedRetailUsd": 0.0924,
                "enabled": true
              },
              {
                "resolution": "4k-silent",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.231,
                "upstreamCostUsd": 0.42,
                "suggestedRetailUsd": 0.231,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0693,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_kling_v3_std_audio_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.069300 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBanana2-1K",
        "name": "Nano Banana 2",
        "type": "image",
        "price": "$0.044 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.044,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "0.5K",
                "unitPriceUsd": 0.033,
                "upstreamCostUsd": 0.06,
                "suggestedRetailUsd": 0.033,
                "enabled": true
              },
              {
                "resolution": "1K",
                "unitPriceUsd": 0.044,
                "upstreamCostUsd": 0.08,
                "suggestedRetailUsd": 0.044,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.066,
                "upstreamCostUsd": 0.12,
                "suggestedRetailUsd": 0.066,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.088,
                "upstreamCostUsd": 0.16,
                "suggestedRetailUsd": 0.088,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.044,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_2_1k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.044 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBanana2-0.5K",
        "name": "Nano Banana 2 0.5K",
        "type": "image",
        "price": "$0.033 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.033,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "0.5K",
                "unitPriceUsd": 0.033,
                "upstreamCostUsd": 0.06,
                "suggestedRetailUsd": 0.033,
                "enabled": true
              },
              {
                "resolution": "1K",
                "unitPriceUsd": 0.044,
                "upstreamCostUsd": 0.08,
                "suggestedRetailUsd": 0.044,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.066,
                "upstreamCostUsd": 0.12,
                "suggestedRetailUsd": 0.066,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.088,
                "upstreamCostUsd": 0.16,
                "suggestedRetailUsd": 0.088,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.033,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_fal_nanobanana2_0_5k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.033 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBanana2-2K",
        "name": "Nano Banana 2 2K",
        "type": "image",
        "price": "$0.066 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.066,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "0.5K",
                "unitPriceUsd": 0.033,
                "upstreamCostUsd": 0.06,
                "suggestedRetailUsd": 0.033,
                "enabled": true
              },
              {
                "resolution": "1K",
                "unitPriceUsd": 0.044,
                "upstreamCostUsd": 0.08,
                "suggestedRetailUsd": 0.044,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.066,
                "upstreamCostUsd": 0.12,
                "suggestedRetailUsd": 0.066,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.088,
                "upstreamCostUsd": 0.16,
                "suggestedRetailUsd": 0.088,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.066,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_2_2k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.066 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBanana2-4K",
        "name": "Nano Banana 2 4K",
        "type": "image",
        "price": "$0.088 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.088,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "0.5K",
                "unitPriceUsd": 0.033,
                "upstreamCostUsd": 0.06,
                "suggestedRetailUsd": 0.033,
                "enabled": true
              },
              {
                "resolution": "1K",
                "unitPriceUsd": 0.044,
                "upstreamCostUsd": 0.08,
                "suggestedRetailUsd": 0.044,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.066,
                "upstreamCostUsd": 0.12,
                "suggestedRetailUsd": 0.066,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.088,
                "upstreamCostUsd": 0.16,
                "suggestedRetailUsd": 0.088,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.088,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_2_4k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.088 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBananaPro-1K",
        "name": "Nano Banana Pro",
        "type": "image",
        "price": "$0.083 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0825,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0825,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_pro_1k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.083 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBananaPro-2K",
        "name": "Nano Banana Pro 2K",
        "type": "image",
        "price": "$0.083 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0825,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0825,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_pro_2k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.083 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "NanoBananaPro-4K",
        "name": "Nano Banana Pro 4K",
        "type": "image",
        "price": "$0.165 / 张",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.165,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "2K",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4K",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.165,
            "billingUnit": "image",
            "priceContext": "api",
            "pricingRuleId": "price_nano_banana_pro_4k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.165 / image"
          }
        },
        "status": "normal"
      },
      {
        "id": "seedance2.0-720p",
        "name": "Seedance 2.0",
        "type": "video",
        "price": "$0.167 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.16687,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.16687,
                "upstreamCostUsd": 0.3034,
                "suggestedRetailUsd": 0.16687,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.16687,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_seedance2_0_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.166870 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "seedance2.0-1080p",
        "name": "Seedance 2.0 1080p",
        "type": "video",
        "price": "$0.375 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.3751,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.3751,
                "upstreamCostUsd": 0.682,
                "suggestedRetailUsd": 0.3751,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.3751,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_seedance2_0_1080p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.375100 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "seedance2.0-480p",
        "name": "Seedance 2.0 480p",
        "type": "video",
        "price": "$0.077 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.077339,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "480p",
                "unitPriceUsd": 0.077339,
                "upstreamCostUsd": 0.140616,
                "suggestedRetailUsd": 0.077339,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.077339,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_seedance2_0_480p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.077339 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "seedance2.0-fast-720p",
        "name": "Seedance 2.0 Fast",
        "type": "video",
        "price": "$0.133 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.133045,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "fast-720p",
                "unitPriceUsd": 0.133045,
                "upstreamCostUsd": 0.2419,
                "suggestedRetailUsd": 0.133045,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.133045,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_seedance2_0_fast_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.133045 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "seedance2.0-fast-480p",
        "name": "Seedance 2.0 Fast 480p",
        "type": "video",
        "price": "$0.062 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.061871,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "fast-480p",
                "unitPriceUsd": 0.061871,
                "upstreamCostUsd": 0.112493,
                "suggestedRetailUsd": 0.061871,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.061871,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_seedance2_0_fast_480p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.061871 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "sora2",
        "name": "Sora2",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_sora2_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "sora2-pro-720p",
        "name": "Sora2 Pro",
        "type": "video",
        "price": "$0.165 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.165,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.275,
                "upstreamCostUsd": 0.5,
                "suggestedRetailUsd": 0.275,
                "enabled": true
              },
              {
                "resolution": "true_1080p",
                "unitPriceUsd": 0.385,
                "upstreamCostUsd": 0.7,
                "suggestedRetailUsd": 0.385,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.165,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_sora2_pro_720p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.165000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "sora2-pro-1080p",
        "name": "Sora2 Pro 1080p",
        "type": "video",
        "price": "$0.275 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.275,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.275,
                "upstreamCostUsd": 0.5,
                "suggestedRetailUsd": 0.275,
                "enabled": true
              },
              {
                "resolution": "true_1080p",
                "unitPriceUsd": 0.385,
                "upstreamCostUsd": 0.7,
                "suggestedRetailUsd": 0.385,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.275,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_sora2_pro_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.275000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "sora2-pro-true-1080p",
        "name": "Sora2 Pro True 1080p",
        "type": "video",
        "price": "$0.385 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.385,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.275,
                "upstreamCostUsd": 0.5,
                "suggestedRetailUsd": 0.275,
                "enabled": true
              },
              {
                "resolution": "true_1080p",
                "unitPriceUsd": 0.385,
                "upstreamCostUsd": 0.7,
                "suggestedRetailUsd": 0.385,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.385,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_sora2_pro_true_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.385000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-fast-video-720p",
        "name": "Veo3.1 Fast",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.1925,
                "upstreamCostUsd": 0.35,
                "suggestedRetailUsd": 0.1925,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_fast_video_720p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-fast-video-1080p",
        "name": "Veo3.1 Fast Video 1080p",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.1925,
                "upstreamCostUsd": 0.35,
                "suggestedRetailUsd": 0.1925,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_fast_video_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-fast-video-4k",
        "name": "Veo3.1 Fast Video 4K",
        "type": "video",
        "price": "$0.165 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.165,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.165,
                "upstreamCostUsd": 0.3,
                "suggestedRetailUsd": 0.165,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.1925,
                "upstreamCostUsd": 0.35,
                "suggestedRetailUsd": 0.1925,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.165,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_fast_video_4k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.165000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-video-720p",
        "name": "Veo3.1 Video",
        "type": "video",
        "price": "$0.110 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.11,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.33,
                "upstreamCostUsd": 0.6,
                "suggestedRetailUsd": 0.33,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.11,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_video_720p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.110000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-video-1080p",
        "name": "Veo3.1 Video 1080p",
        "type": "video",
        "price": "$0.110 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.11,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.33,
                "upstreamCostUsd": 0.6,
                "suggestedRetailUsd": 0.33,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.11,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_video_1080p_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.110000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "veo3.1-video-4k",
        "name": "Veo3.1 Video 4K",
        "type": "video",
        "price": "$0.220 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.22,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.11,
                "upstreamCostUsd": 0.2,
                "suggestedRetailUsd": 0.11,
                "enabled": true
              },
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k",
                "unitPriceUsd": 0.22,
                "upstreamCostUsd": 0.4,
                "suggestedRetailUsd": 0.22,
                "enabled": true
              },
              {
                "resolution": "4k-audio",
                "unitPriceUsd": 0.33,
                "upstreamCostUsd": 0.6,
                "suggestedRetailUsd": 0.33,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.22,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_veo31_video_4k_v1",
            "source": "api_fal_official_resolution_price",
            "text": "$0.220000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3p-1080p",
        "name": "Vidu Q3 Pro 1080p",
        "type": "video",
        "price": "$0.079 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.078636,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.078636,
                "upstreamCostUsd": 0.142974,
                "suggestedRetailUsd": 0.078636,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.078636,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3p_1080p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.078636 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3p-540p",
        "name": "Vidu Q3 Pro 540p",
        "type": "video",
        "price": "$0.035 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0346,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "540p",
                "unitPriceUsd": 0.0346,
                "upstreamCostUsd": 0.062909,
                "suggestedRetailUsd": 0.0346,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0346,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3p_540p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.034600 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3p-720p",
        "name": "Vidu Q3 Pro 720p",
        "type": "video",
        "price": "$0.074 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.073917,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.073917,
                "upstreamCostUsd": 0.134395,
                "suggestedRetailUsd": 0.073917,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.073917,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3p_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.073917 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3t-1080p",
        "name": "Vidu Q3 Turbo 1080p",
        "type": "video",
        "price": "$0.039 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.039318,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.039318,
                "upstreamCostUsd": 0.071487,
                "suggestedRetailUsd": 0.039318,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.039318,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3t_1080p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.039318 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3t-540p",
        "name": "Vidu Q3 Turbo 540p",
        "type": "video",
        "price": "$0.020 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.019659,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "540p",
                "unitPriceUsd": 0.019659,
                "upstreamCostUsd": 0.035744,
                "suggestedRetailUsd": 0.019659,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.019659,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3t_540p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.019659 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "viduq3t-720p",
        "name": "Vidu Q3 Turbo 720p",
        "type": "video",
        "price": "$0.030 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.029882,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.029882,
                "upstreamCostUsd": 0.05433,
                "suggestedRetailUsd": 0.029882,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.029882,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_viduq3t_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.029882 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.2-animate-480p",
        "name": "Wan 2.2 Animate 480p",
        "type": "video",
        "price": "$0.022 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.022,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "480p",
                "unitPriceUsd": 0.022,
                "upstreamCostUsd": 0.04,
                "suggestedRetailUsd": 0.022,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.022,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_2_animate_480p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.022000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.2-animate-720p",
        "name": "Wan 2.2 Animate 720p",
        "type": "video",
        "price": "$0.044 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.044,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.044,
                "upstreamCostUsd": 0.08,
                "suggestedRetailUsd": 0.044,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.044,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_2_animate_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.044000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-i2v-flash-1080p-audio",
        "name": "Wan 2.6 I2V Flash 1080p Audio",
        "type": "video",
        "price": "$0.041 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.04125,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.04125,
                "upstreamCostUsd": 0.075,
                "suggestedRetailUsd": 0.04125,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.04125,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_i2v_flash_1080p_audio_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.041250 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-i2v-flash-1080p-silent",
        "name": "Wan 2.6 I2V Flash 1080p Silent",
        "type": "video",
        "price": "$0.010 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.010313,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p-silent",
                "unitPriceUsd": 0.010313,
                "upstreamCostUsd": 0.01875,
                "suggestedRetailUsd": 0.010313,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.010313,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_i2v_flash_1080p_silent_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.010313 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-i2v-flash-720p-audio",
        "name": "Wan 2.6 I2V Flash 720p Audio",
        "type": "video",
        "price": "$0.028 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0275,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.0275,
                "upstreamCostUsd": 0.05,
                "suggestedRetailUsd": 0.0275,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0275,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_i2v_flash_720p_audio_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.027500 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-i2v-flash-720p-silent",
        "name": "Wan 2.6 I2V Flash 720p Silent",
        "type": "video",
        "price": "$0.007 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.006875,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p-silent",
                "unitPriceUsd": 0.006875,
                "upstreamCostUsd": 0.0125,
                "suggestedRetailUsd": 0.006875,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.006875,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_i2v_flash_720p_silent_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.006875 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-1080p",
        "name": "Wan 2.6 R2V 1080p",
        "type": "video",
        "price": "$0.083 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0825,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0825,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_1080p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.082500 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-720p",
        "name": "Wan 2.6 R2V 720p",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-flash-1080p-audio",
        "name": "Wan 2.6 R2V Flash 1080p Audio",
        "type": "video",
        "price": "$0.083 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0825,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p-audio",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0825,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_flash_1080p_audio_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.082500 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-flash-1080p-silent",
        "name": "Wan 2.6 R2V Flash 1080p Silent",
        "type": "video",
        "price": "$0.021 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.020625,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p-silent",
                "unitPriceUsd": 0.020625,
                "upstreamCostUsd": 0.0375,
                "suggestedRetailUsd": 0.020625,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.020625,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_flash_1080p_silent_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.020625 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-flash-720p-audio",
        "name": "Wan 2.6 R2V Flash 720p Audio",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p-audio",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_flash_720p_audio_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-r2v-flash-720p-silent",
        "name": "Wan 2.6 R2V Flash 720p Silent",
        "type": "video",
        "price": "$0.014 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.01375,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p-silent",
                "unitPriceUsd": 0.01375,
                "upstreamCostUsd": 0.025,
                "suggestedRetailUsd": 0.01375,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.01375,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_r2v_flash_720p_silent_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.013750 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-video-1080p",
        "name": "Wan 2.6 Video 1080p",
        "type": "video",
        "price": "$0.083 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.0825,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "1080p",
                "unitPriceUsd": 0.0825,
                "upstreamCostUsd": 0.15,
                "suggestedRetailUsd": 0.0825,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.0825,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_video_1080p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.082500 / second"
          }
        },
        "status": "normal"
      },
      {
        "id": "wan2.6-video-720p",
        "name": "Wan 2.6 Video 720p",
        "type": "video",
        "price": "$0.055 / 秒",
        "priceContext": "api",
        "priceProfiles": {
          "api": {
            "unitPriceUsd": 0.055,
            "inputPricePer1kUsd": 0,
            "outputPricePer1kUsd": 0,
            "resolutionPrices": [
              {
                "resolution": "720p",
                "unitPriceUsd": 0.055,
                "upstreamCostUsd": 0.1,
                "suggestedRetailUsd": 0.055,
                "enabled": true
              }
            ],
            "estimatedChargeUsd": 0.055,
            "billingUnit": "second",
            "priceContext": "api",
            "pricingRuleId": "price_fal_wan2_6_video_720p_v1",
            "source": "api_pricing_rule_resolution_price",
            "text": "$0.055000 / second"
          }
        },
        "status": "normal"
      }
    ]
  }
}