{
  "openapi": "3.0.0",
  "info": {
    "title": "OpenAI generation",
    "version": "1.0.0",
    "description": "API reference for OpenAI generation on Ace Data Cloud."
  },
  "servers": [
    {
      "url": "https://api.acedata.cloud",
      "description": "Ace Data Cloud API"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from https://platform.acedata.cloud"
      }
    },
    "schemas": {
      "ResponsesInput": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ResponsesInputItem"
            }
          }
        ],
        "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Responsesinput.14Feedcd5C3D"
      },
      "ResponsesInputItem": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ResponsesMessageInput"
          },
          {
            "$ref": "#/components/schemas/ResponsesFunctionToolCall"
          },
          {
            "$ref": "#/components/schemas/ResponsesFunctionToolCallOutput"
          },
          {
            "$ref": "#/components/schemas/ResponsesCustomToolCall"
          },
          {
            "$ref": "#/components/schemas/ResponsesCustomToolCallOutput"
          },
          {
            "$ref": "#/components/schemas/ResponsesAdditionalTools"
          },
          {
            "$ref": "#/components/schemas/ResponsesOpenInputItem"
          }
        ],
        "discriminator": {
          "propertyName": "type"
        }
      },
      "ResponsesMessageInput": {
        "type": "object",
        "required": [
          "role",
          "content"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "message"
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant",
              "system",
              "developer"
            ]
          },
          "content": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ]
          },
          "phase": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ResponsesCustomToolCall": {
        "type": "object",
        "required": [
          "type",
          "call_id",
          "name",
          "input"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom_tool_call"
            ]
          },
          "id": {
            "type": "string"
          },
          "call_id": {
            "type": "string",
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Call Id.8C6Ca8028A3E"
          },
          "name": {
            "type": "string"
          },
          "namespace": {
            "type": "string",
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Namespace.713201D1840C"
          },
          "input": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ResponsesCustomToolCallOutput": {
        "type": "object",
        "required": [
          "type",
          "call_id",
          "output"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom_tool_call_output"
            ]
          },
          "id": {
            "type": "string"
          },
          "call_id": {
            "type": "string",
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Call Id.56Bb02E66Ff9"
          },
          "output": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ]
          }
        },
        "additionalProperties": true
      },
      "ResponsesAdditionalTools": {
        "type": "object",
        "required": [
          "type",
          "role",
          "tools"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "additional_tools"
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "developer"
            ]
          },
          "tools": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ResponsesTool"
            }
          }
        }
      },
      "ResponsesTool": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ResponsesCustomTool"
          },
          {
            "$ref": "#/components/schemas/ResponsesFunctionTool"
          },
          {
            "$ref": "#/components/schemas/ResponsesNamespaceTool"
          },
          {
            "$ref": "#/components/schemas/ResponsesOpenTool"
          }
        ],
        "discriminator": {
          "propertyName": "type"
        }
      },
      "ResponsesCustomTool": {
        "type": "object",
        "required": [
          "type",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "format": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ResponsesFunctionTool": {
        "type": "object",
        "required": [
          "type",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "function"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
          },
          "strict": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "ResponsesNamespaceTool": {
        "type": "object",
        "required": [
          "type",
          "name",
          "description",
          "tools"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "namespace"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Name.E87F9B9F039A"
          },
          "description": {
            "type": "string"
          },
          "tools": {
            "type": "array",
            "minItems": 1,
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ResponsesCustomTool"
                },
                {
                  "$ref": "#/components/schemas/ResponsesFunctionTool"
                }
              ],
              "discriminator": {
                "propertyName": "type"
              }
            }
          }
        }
      },
      "ResponsesOutputItem": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ResponsesOutputMessage"
          },
          {
            "$ref": "#/components/schemas/ResponsesFunctionToolCall"
          },
          {
            "$ref": "#/components/schemas/ResponsesCustomToolCall"
          },
          {
            "$ref": "#/components/schemas/ResponsesOpenOutputItem"
          }
        ],
        "discriminator": {
          "propertyName": "type"
        }
      },
      "ResponsesOutputMessage": {
        "type": "object",
        "required": [
          "type",
          "role",
          "content"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "message"
            ]
          },
          "id": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "assistant"
            ]
          },
          "status": {
            "type": "string"
          },
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "ResponsesUsage": {
        "type": "object",
        "required": [
          "input_tokens",
          "output_tokens",
          "total_tokens"
        ],
        "properties": {
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "total_tokens": {
            "type": "integer"
          },
          "input_tokens_details": {
            "type": "object",
            "additionalProperties": true
          },
          "output_tokens_details": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "ResponsesResponse": {
        "type": "object",
        "required": [
          "id",
          "object",
          "status",
          "model",
          "output"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string",
            "enum": [
              "response"
            ]
          },
          "created_at": {
            "type": "integer"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "failed",
              "in_progress",
              "incomplete",
              "queued",
              "cancelled"
            ]
          },
          "model": {
            "type": "string"
          },
          "output": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResponsesOutputItem"
            }
          },
          "output_text": {
            "type": "string"
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ResponsesUsage"
              }
            ],
            "nullable": true
          },
          "error": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "ResponsesStreamEvent": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Type.Fab6416D3441"
          },
          "response": {
            "$ref": "#/components/schemas/ResponsesResponse"
          },
          "item": {
            "$ref": "#/components/schemas/ResponsesOutputItem"
          },
          "output_index": {
            "type": "integer"
          },
          "delta": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ResponsesFunctionToolCall": {
        "type": "object",
        "required": [
          "type",
          "call_id",
          "name",
          "arguments"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "function_call"
            ]
          },
          "id": {
            "type": "string"
          },
          "call_id": {
            "type": "string",
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Call Id.4A7F97Cae969"
          },
          "name": {
            "type": "string"
          },
          "arguments": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ResponsesFunctionToolCallOutput": {
        "type": "object",
        "required": [
          "type",
          "output"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "function_call_output"
            ]
          },
          "id": {
            "type": "string"
          },
          "call_id": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Call Id.2De867Df3989"
          },
          "output": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ]
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Name.C324F7126A7C"
          },
          "namespace": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Namespace.Bf3297183432"
          }
        },
        "additionalProperties": true
      },
      "ResponsesOpenInputItem": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "not": {
              "enum": [
                "message",
                "function_call",
                "function_call_output",
                "custom_tool_call",
                "custom_tool_call_output",
                "additional_tools"
              ]
            }
          }
        },
        "additionalProperties": true,
        "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Responsesopeninputitem.E574D2Efca8F"
      },
      "ResponsesOpenTool": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "not": {
              "enum": [
                "custom",
                "function",
                "namespace"
              ]
            }
          }
        },
        "additionalProperties": true,
        "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Responsesopentool.7F928862419E"
      },
      "ResponsesOpenOutputItem": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "not": {
              "enum": [
                "message",
                "function_call",
                "custom_tool_call"
              ]
            }
          }
        },
        "additionalProperties": true,
        "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Responsesopenoutputitem.03A8Aa0Cff8B"
      },
      "OpenaiTaskRequestPayload": {
        "type": "object",
        "additionalProperties": true,
        "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Openaitaskrequestpayload.5B2983943843"
      },
      "OpenaiTaskResultPayload": {
        "type": "object",
        "additionalProperties": true,
        "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Openaitaskresultpayload.6A35F882Aa4E"
      },
      "OpenaiTaskRecord": {
        "type": "object",
        "required": [
          "id",
          "type",
          "created_at",
          "trace_id",
          "request"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Id.F0C4D04Ac901"
          },
          "type": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Type.2377365D580B"
          },
          "trace_id": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Trace Id.294E865Afe7D"
          },
          "request": {
            "$ref": "#/components/schemas/OpenaiTaskRequestPayload"
          },
          "response": {
            "$ref": "#/components/schemas/OpenaiTaskResultPayload"
          },
          "created_at": {
            "type": "number",
            "format": "double",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Created At.7Eb1Ea25D63F"
          },
          "started_at": {
            "type": "number",
            "format": "double",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Started At.7B96764Eca42"
          },
          "finished_at": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Finished At.Af98E2F04Efa"
          },
          "elapsed": {
            "type": "number",
            "format": "double",
            "minimum": 0,
            "nullable": true,
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Elapsed.438Ff25Abacb"
          },
          "user_id": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.User Id.3444939Bec0F",
            "nullable": true
          },
          "actor_user_id": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Actor User Id.2952Ff9B7F38"
          },
          "api_id": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Api Id.45Cf1B2E805B"
          },
          "application_id": {
            "type": "string",
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Application Id.3Fbf90Fcc98C"
          },
          "credential_id": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Credential Id.7E41Bc205Fd2"
          },
          "authorization_id": {
            "type": "string",
            "nullable": true,
            "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Authorization Id.271938Ba5A22"
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/openai/chat/completions": {
      "post": {
        "summary": "Openai Chat Completions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "choices",
                    "created",
                    "id",
                    "model",
                    "object"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Openai Chat Completions Response 200 Id"
                    },
                    "model": {
                      "type": "string",
                      "description": "Openai Chat Completions Response 200 Model"
                    },
                    "object": {
                      "enum": [
                        "chat.completion"
                      ],
                      "type": "string",
                      "description": "Openai Chat Completions Response 200 Object"
                    },
                    "choices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "finish_reason",
                          "index",
                          "message"
                        ],
                        "properties": {
                          "index": {
                            "type": "number",
                            "description": "Openai Chat Completions Response 200 Choices Index"
                          },
                          "message": {
                            "type": "object",
                            "required": [
                              "role"
                            ],
                            "properties": {
                              "role": {
                                "enum": [
                                  "assistant"
                                ],
                                "type": "string",
                                "description": "Openai Chat Completions Response 200 Choices Message Role"
                              },
                              "content": {
                                "type": "string",
                                "nullable": true,
                                "description": "Openai Chat Completions Response 200 Choices Message"
                              },
                              "tool_calls": {
                                "type": "array",
                                "nullable": true,
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "type",
                                    "function"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Openai Chat Completions Response 200 Choices Message Tool Calls Id"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "function"
                                      ],
                                      "description": "Openai Chat Completions Response 200 Choices Message Tool Calls Type"
                                    },
                                    "function": {
                                      "type": "object",
                                      "required": [
                                        "name",
                                        "arguments"
                                      ],
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "Openai Chat Completions Response 200 Choices Message Tool Calls Function Name"
                                        },
                                        "arguments": {
                                          "type": "string",
                                          "description": "Openai Chat Completions Response 200 Choices Message Tool Calls Function Arguments"
                                        }
                                      },
                                      "description": "Openai Chat Completions Response 200 Choices Message Tool Calls Function"
                                    }
                                  }
                                },
                                "description": "Openai Chat Completions Response 200 Choices Message Tool Calls"
                              },
                              "refusal": {
                                "type": "string",
                                "nullable": true,
                                "description": "Openai Chat Completions Response 200 Choices Message Refusal"
                              },
                              "audio": {
                                "type": "object",
                                "nullable": true,
                                "required": [
                                  "id",
                                  "data",
                                  "expires_at"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Openai Chat Completions Response 200 Choices Message Audio Id"
                                  },
                                  "expires_at": {
                                    "type": "integer",
                                    "description": "Openai Chat Completions Response 200 Choices Message Audio Expires At"
                                  },
                                  "data": {
                                    "type": "string",
                                    "description": "Openai Chat Completions Response 200 Choices Message Audio Data"
                                  },
                                  "transcript": {
                                    "type": "string",
                                    "description": "Openai Chat Completions Response 200 Choices Message Audio Transcript"
                                  }
                                },
                                "description": "Openai Chat Completions Response 200 Choices Message Audio"
                              }
                            },
                            "description": "Openai Chat Completions Response 200 Choices Message 2"
                          },
                          "finish_reason": {
                            "enum": [
                              "stop",
                              "length",
                              "tool_calls",
                              "content_filter",
                              "function_call"
                            ],
                            "type": "string",
                            "description": "Openai Chat Completions Response 200 Choices Finish Reason"
                          },
                          "logprobs": {
                            "type": "object",
                            "nullable": true,
                            "description": "Openai Chat Completions Response 200 Choices Logprobs",
                            "additionalProperties": true
                          }
                        }
                      },
                      "description": "Openai Chat Completions Response 200 Choices"
                    },
                    "created": {
                      "type": "number",
                      "description": "Openai Chat Completions Response 200 Created"
                    },
                    "system_fingerprint": {
                      "type": "string",
                      "description": "Openai Chat Completions Response 200 System Fingerprint"
                    },
                    "usage": {
                      "type": "object",
                      "required": [
                        "prompt_tokens",
                        "completion_tokens",
                        "total_tokens"
                      ],
                      "properties": {
                        "prompt_tokens": {
                          "type": "integer",
                          "description": "Openai Chat Completions Response 200 Usage Prompt Tokens"
                        },
                        "completion_tokens": {
                          "type": "integer",
                          "description": "Openai Chat Completions Response 200 Usage Completion Tokens"
                        },
                        "total_tokens": {
                          "type": "integer",
                          "description": "Openai Chat Completions Response 200 Usage Total Tokens"
                        },
                        "prompt_tokens_details": {
                          "type": "object",
                          "properties": {
                            "cached_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Prompt Tokens Details Cached Tokens"
                            },
                            "audio_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Prompt Tokens Details Audio Tokens"
                            }
                          },
                          "description": "Openai Chat Completions Response 200 Usage Prompt Tokens Details"
                        },
                        "completion_tokens_details": {
                          "type": "object",
                          "properties": {
                            "reasoning_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Completion Tokens Details Reasoning Tokens"
                            },
                            "audio_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Completion Tokens Details Audio Tokens"
                            },
                            "accepted_prediction_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Completion Tokens Details Accepted Prediction Tokens"
                            },
                            "rejected_prediction_tokens": {
                              "type": "integer",
                              "description": "Openai Chat Completions Response 200 Usage Completion Tokens Details Rejected Prediction Tokens"
                            }
                          },
                          "description": "Openai Chat Completions Response 200 Usage Completion Tokens Details"
                        }
                      },
                      "description": "Openai Chat Completions Response 200 Usage"
                    }
                  },
                  "description": "Openai Chat Completions Response 200"
                }
              }
            },
            "description": "Openai Chat Completions Response 200 2"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Chat Completions Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Chat Completions Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Chat Completions Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Chat Completions Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Chat Completions Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Chat Completions Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Chat Completions Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Chat Completions Response 401"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Chat Completions Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Chat Completions Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Chat Completions Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Chat Completions Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Chat Completions Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Chat Completions Response 500"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Chat Completions Param Accept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "messages"
                ],
                "properties": {
                  "n": {
                    "type": "number",
                    "default": 1,
                    "example": 1,
                    "maximum": 128,
                    "minimum": 1,
                    "nullable": true,
                    "description": "Openai Chat Completions N"
                  },
                  "model": {
                    "enum": [
                      "gpt-6.2-astra",
                      "gpt-6.2-sol",
                      "gpt-6.1-sol",
                      "gpt-6.1-terra",
                      "gpt-6-sol",
                      "gpt-6-luna",
                      "gpt-6-astra",
                      "gpt-oss:free",
                      "gpt-5.5:free",
                      "gpt-5:free",
                      "gpt-4.1:free",
                      "gpt-4o:free",
                      "gpt-4o-mini:free",
                      "gpt-5.6-luna",
                      "gpt-5.6-terra",
                      "gpt-5.6-sol-fast",
                      "gpt-5.6-sol",
                      "gpt-5.5",
                      "gpt-5.5-pro",
                      "gpt-5.4",
                      "gpt-5.4-mini",
                      "gpt-5.4-nano",
                      "gpt-5.4-pro",
                      "gpt-5.2",
                      "gpt-5.1",
                      "gpt-5.1-all",
                      "gpt-5",
                      "gpt-5-pro",
                      "gpt-5-mini",
                      "gpt-5-nano",
                      "gpt-4",
                      "gpt-4.1",
                      "gpt-4.1-mini",
                      "gpt-4.1-nano",
                      "gpt-4o",
                      "gpt-4o-2024-05-13",
                      "gpt-4o-all",
                      "gpt-4o-image",
                      "gpt-4o-mini",
                      "gpt-35-turbo-16k",
                      "o1",
                      "o1-mini",
                      "o1-pro",
                      "o3",
                      "o3-mini",
                      "o3-pro",
                      "o4-mini",
                      "mimo-v2.6-pro",
                      "mimo-v2.6-flash"
                    ],
                    "type": "string",
                    "example": "gpt-4o-mini",
                    "description": "Openai Chat Completions Model"
                  },
                  "stream": {
                    "type": "boolean",
                    "default": false,
                    "nullable": true,
                    "description": "Openai Chat Completions Stream"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "role"
                      ],
                      "properties": {
                        "role": {
                          "enum": [
                            "user",
                            "assistant",
                            "system",
                            "developer",
                            "tool"
                          ],
                          "type": "string",
                          "description": "Openai Chat Completions Messages Role"
                        },
                        "content": {
                          "oneOf": [
                            {
                              "type": "string",
                              "description": "Openai Chat Completions Messages"
                            },
                            {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "text"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ],
                                        "description": "Openai Chat Completions Messages Type"
                                      },
                                      "text": {
                                        "type": "string",
                                        "description": "Openai Chat Completions Messages Text"
                                      }
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "image_url"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "image_url"
                                        ],
                                        "description": "Openai Chat Completions Messages Type 2"
                                      },
                                      "image_url": {
                                        "type": "object",
                                        "required": [
                                          "url"
                                        ],
                                        "properties": {
                                          "url": {
                                            "type": "string",
                                            "description": "Openai Chat Completions Messages Image Url Url"
                                          },
                                          "detail": {
                                            "type": "string",
                                            "enum": [
                                              "auto",
                                              "low",
                                              "high"
                                            ],
                                            "default": "auto",
                                            "description": "Openai Chat Completions Messages Image Url Detail"
                                          }
                                        },
                                        "description": "Openai Chat Completions Messages Image Url"
                                      }
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "input_audio"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "input_audio"
                                        ],
                                        "description": "Openai Chat Completions Messages Type 3"
                                      },
                                      "input_audio": {
                                        "type": "object",
                                        "required": [
                                          "data",
                                          "format"
                                        ],
                                        "properties": {
                                          "data": {
                                            "type": "string",
                                            "description": "Openai Chat Completions Messages Input Audio Data"
                                          },
                                          "format": {
                                            "type": "string",
                                            "enum": [
                                              "wav",
                                              "mp3"
                                            ],
                                            "description": "Openai Chat Completions Messages Input Audio Format"
                                          }
                                        },
                                        "description": "Openai Chat Completions Messages Input Audio"
                                      }
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "file"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "file"
                                        ],
                                        "description": "Openai Chat Completions Messages Type 4"
                                      },
                                      "file": {
                                        "type": "object",
                                        "properties": {
                                          "filename": {
                                            "type": "string",
                                            "description": "Openai Chat Completions Messages File Filename"
                                          },
                                          "file_data": {
                                            "type": "string",
                                            "description": "Openai Chat Completions Messages File File Data"
                                          },
                                          "file_id": {
                                            "type": "string",
                                            "description": "Openai Chat Completions Messages File File Id"
                                          }
                                        },
                                        "description": "Openai Chat Completions Messages File"
                                      }
                                    }
                                  }
                                ]
                              },
                              "minItems": 1,
                              "description": "Openai Chat Completions Messages 2"
                            }
                          ],
                          "description": "Openai Chat Completions Messages 3"
                        },
                        "name": {
                          "type": "string",
                          "description": "Openai Chat Completions Messages Name"
                        },
                        "tool_call_id": {
                          "type": "string",
                          "description": "Openai Chat Completions Messages Tool Call Id"
                        },
                        "tool_calls": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "type",
                              "function"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Openai Chat Completions Messages Tool Calls Id"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "function"
                                ],
                                "description": "Openai Chat Completions Messages Tool Calls Type"
                              },
                              "function": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "arguments"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "Openai Chat Completions Messages Tool Calls Function Name"
                                  },
                                  "arguments": {
                                    "type": "string",
                                    "description": "Openai Chat Completions Messages Tool Calls Function Arguments"
                                  }
                                }
                              }
                            }
                          },
                          "description": "Openai Chat Completions Messages Tool Calls"
                        },
                        "refusal": {
                          "type": "string",
                          "nullable": true,
                          "description": "Openai Chat Completions Messages Refusal"
                        }
                      }
                    },
                    "minItems": 1,
                    "description": "Openai Chat Completions Messages 4"
                  },
                  "max_tokens": {
                    "type": "number",
                    "nullable": true,
                    "description": "Openai Chat Completions Max Tokens"
                  },
                  "temperature": {
                    "type": "number",
                    "default": 1,
                    "example": 1,
                    "maximum": 2,
                    "minimum": 0,
                    "nullable": true,
                    "description": "Openai Chat Completions Temperature"
                  },
                  "response_format": {
                    "oneOf": [
                      {
                        "type": "object",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "text"
                            ],
                            "type": "string",
                            "description": "Openai Chat Completions Response Format Type"
                          }
                        },
                        "description": "Openai Chat Completions Response Format"
                      },
                      {
                        "type": "object",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "json_object"
                            ],
                            "type": "string",
                            "description": "Openai Chat Completions Response Format Type 2"
                          }
                        },
                        "description": "Openai Chat Completions Response Format 2"
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "json_schema"
                        ],
                        "properties": {
                          "type": {
                            "enum": [
                              "json_schema"
                            ],
                            "type": "string",
                            "description": "Openai Chat Completions Response Format Type 3"
                          },
                          "json_schema": {
                            "type": "object",
                            "required": [
                              "name"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Openai Chat Completions Response Format Json Schema Name"
                              },
                              "description": {
                                "type": "string",
                                "description": "Openai Chat Completions Response Format Json Schema Description"
                              },
                              "schema": {
                                "type": "object",
                                "description": "Openai Chat Completions Response Format Json Schema",
                                "additionalProperties": true
                              },
                              "strict": {
                                "type": "boolean",
                                "default": false,
                                "nullable": true,
                                "description": "Openai Chat Completions Response Format Json Schema Strict"
                              }
                            }
                          }
                        },
                        "description": "Openai Chat Completions Response Format 3"
                      }
                    ],
                    "description": "Openai Chat Completions Response Format 4"
                  },
                  "tools": {
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "function"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "function"
                          ],
                          "description": "Openai Chat Completions Tools Type"
                        },
                        "function": {
                          "type": "object",
                          "required": [
                            "name"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "description": "Openai Chat Completions Tools Function Name"
                            },
                            "description": {
                              "type": "string",
                              "description": "Openai Chat Completions Tools Function Description"
                            },
                            "parameters": {
                              "type": "object",
                              "description": "Openai Chat Completions Tools Function",
                              "additionalProperties": true
                            }
                          },
                          "description": "Openai Chat Completions Tools Function 2"
                        }
                      }
                    },
                    "description": "Openai Chat Completions Tools"
                  },
                  "tool_choice": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "none",
                          "auto",
                          "required"
                        ],
                        "description": "Openai Chat Completions Tool Choice"
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "function"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "function"
                            ],
                            "description": "Openai Chat Completions Tool Choice Type"
                          },
                          "function": {
                            "type": "object",
                            "required": [
                              "name"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Openai Chat Completions Tool Choice Function Name"
                              }
                            }
                          }
                        },
                        "description": "Openai Chat Completions Tool Choice 2"
                      }
                    ],
                    "description": "Openai Chat Completions Tool Choice 3"
                  },
                  "top_p": {
                    "type": "number",
                    "default": 1,
                    "example": 1,
                    "maximum": 1,
                    "minimum": 0,
                    "nullable": true,
                    "description": "Openai Chat Completions Top P"
                  },
                  "frequency_penalty": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 2,
                    "minimum": -2,
                    "nullable": true,
                    "description": "Openai Chat Completions Frequency Penalty"
                  },
                  "presence_penalty": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 2,
                    "minimum": -2,
                    "nullable": true,
                    "description": "Openai Chat Completions Presence Penalty"
                  },
                  "seed": {
                    "type": "integer",
                    "nullable": true,
                    "description": "Openai Chat Completions Seed"
                  },
                  "stop": {
                    "nullable": true,
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "Openai Chat Completions Stop"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "minItems": 1,
                        "maxItems": 4,
                        "description": "Openai Chat Completions Stop 2"
                      }
                    ],
                    "description": "Openai Chat Completions Stop 3"
                  },
                  "max_completion_tokens": {
                    "type": "integer",
                    "nullable": true,
                    "description": "Openai Chat Completions Max Completion Tokens"
                  },
                  "logprobs": {
                    "type": "boolean",
                    "default": false,
                    "nullable": true,
                    "description": "Openai Chat Completions Logprobs"
                  },
                  "top_logprobs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 20,
                    "nullable": true,
                    "description": "Openai Chat Completions Top Logprobs"
                  },
                  "stream_options": {
                    "type": "object",
                    "nullable": true,
                    "properties": {
                      "include_usage": {
                        "type": "boolean",
                        "description": "Openai Chat Completions Stream Options Include Usage"
                      }
                    },
                    "description": "Openai Chat Completions Stream Options"
                  },
                  "parallel_tool_calls": {
                    "type": "boolean",
                    "default": true,
                    "description": "Openai Chat Completions Parallel Tool Calls"
                  },
                  "user": {
                    "type": "string",
                    "description": "Openai Chat Completions User"
                  },
                  "reasoning_effort": {
                    "type": "string",
                    "enum": [
                      "minimal",
                      "low",
                      "medium",
                      "high",
                      "xhigh",
                      "max"
                    ],
                    "default": "medium",
                    "nullable": true,
                    "description": "Openai Chat Completions Reasoning Effort"
                  },
                  "service_tier": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "default",
                      "flex",
                      "scale",
                      "priority"
                    ],
                    "default": "auto",
                    "nullable": true,
                    "description": "Openai Chat Completions Service Tier"
                  },
                  "store": {
                    "type": "boolean",
                    "default": false,
                    "nullable": true,
                    "description": "Openai Chat Completions Store"
                  },
                  "metadata": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Openai Chat Completions Metadata"
                  },
                  "logit_bias": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": {
                      "type": "integer"
                    },
                    "description": "Openai Chat Completions Logit Bias"
                  },
                  "modalities": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "text",
                        "audio"
                      ]
                    },
                    "nullable": true,
                    "description": "Openai Chat Completions Modalities"
                  },
                  "audio": {
                    "type": "object",
                    "nullable": true,
                    "required": [
                      "voice",
                      "format"
                    ],
                    "properties": {
                      "voice": {
                        "type": "string",
                        "enum": [
                          "alloy",
                          "ash",
                          "ballad",
                          "coral",
                          "echo",
                          "fable",
                          "nova",
                          "onyx",
                          "sage",
                          "shimmer"
                        ],
                        "description": "Openai Chat Completions Audio Voice"
                      },
                      "format": {
                        "type": "string",
                        "enum": [
                          "wav",
                          "aac",
                          "mp3",
                          "flac",
                          "opus",
                          "pcm16"
                        ],
                        "description": "Openai Chat Completions Audio Format"
                      }
                    },
                    "description": "Openai Chat Completions Audio"
                  },
                  "prediction": {
                    "type": "object",
                    "nullable": true,
                    "required": [
                      "type",
                      "content"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "content"
                        ],
                        "description": "Openai Chat Completions Prediction Type"
                      },
                      "content": {
                        "oneOf": [
                          {
                            "type": "string",
                            "description": "Openai Chat Completions Prediction"
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "type",
                                "text"
                              ],
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ]
                                },
                                "text": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        ],
                        "description": "Openai Chat Completions Prediction 2"
                      }
                    },
                    "description": "Openai Chat Completions Prediction 3"
                  },
                  "web_search_options": {
                    "type": "object",
                    "properties": {
                      "search_context_size": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ],
                        "default": "medium",
                        "description": "Openai Chat Completions Web Search Options Search Context Size"
                      },
                      "user_location": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "approximate"
                            ]
                          },
                          "approximate": {
                            "type": "object",
                            "properties": {
                              "country": {
                                "type": "string"
                              },
                              "region": {
                                "type": "string"
                              },
                              "city": {
                                "type": "string"
                              },
                              "timezone": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "description": "Openai Chat Completions Web Search Options User Location"
                      }
                    },
                    "description": "Openai Chat Completions Web Search Options"
                  }
                }
              },
              "example": {
                "n": 1,
                "model": "gpt-4o-mini",
                "messages": [
                  {
                    "role": "user",
                    "content": "Hello!"
                  }
                ],
                "temperature": 1,
                "top_p": 1,
                "frequency_penalty": 0,
                "presence_penalty": 0
              }
            }
          },
          "required": true
        },
        "operationId": "OpenaicreateOpenaiChatCompletions",
        "description": "Openai Chat Completions Billing Description"
      }
    },
    "/openai/embeddings": {
      "post": {
        "summary": "Creates an embedding vector representing the input text.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Openai Embeddings Response 200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "data",
                    "model",
                    "usage",
                    "created"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "description": "Openai Embeddings Response 200 Object"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "object",
                          "index",
                          "embedding"
                        ],
                        "properties": {
                          "object": {
                            "type": "string",
                            "enum": [
                              "embedding"
                            ]
                          },
                          "index": {
                            "type": "integer"
                          },
                          "embedding": {
                            "description": "Openai Embeddings Response 200 Data Embedding",
                            "oneOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              {
                                "type": "string",
                                "description": "Openai Embeddings Response 200 Data Embedding 2"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "model": {
                      "type": "string",
                      "description": "Openai Embeddings Response 200 Model"
                    },
                    "usage": {
                      "type": "object",
                      "required": [
                        "prompt_tokens",
                        "total_tokens"
                      ],
                      "properties": {
                        "prompt_tokens": {
                          "type": "integer"
                        },
                        "total_tokens": {
                          "type": "integer"
                        }
                      }
                    },
                    "created": {
                      "type": "integer",
                      "description": "Openai Embeddings Response 200 Created"
                    }
                  }
                },
                "examples": {
                  "float_example": {
                    "summary": "Float embeddings",
                    "value": {
                      "object": "list",
                      "data": [
                        {
                          "object": "embedding",
                          "index": 0,
                          "embedding": [
                            0.0023064255,
                            -0.009327292,
                            0.015271,
                            0.001234
                          ]
                        }
                      ],
                      "model": "text-embedding-3-small",
                      "usage": {
                        "prompt_tokens": 9,
                        "total_tokens": 9
                      },
                      "created": 1714500000
                    }
                  },
                  "base64_example": {
                    "summary": "Base64 embeddings",
                    "value": {
                      "object": "list",
                      "data": [
                        {
                          "object": "embedding",
                          "index": 0,
                          "embedding": "AAABQWJjMTIz..."
                        }
                      ],
                      "model": "text-embedding-3-large",
                      "usage": {
                        "prompt_tokens": 18,
                        "total_tokens": 18
                      },
                      "created": 1714500000
                    }
                  }
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Embeddings Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Embeddings Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Embeddings Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Embeddings Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Embeddings Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Embeddings Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Embeddings Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Embeddings Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Embeddings Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Embeddings Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Embeddings Response 401"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Embeddings Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Embeddings Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Embeddings Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Embeddings Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Embeddings Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Embeddings Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Embeddings Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Embeddings Response 500"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Embeddings Param Accept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "input"
                ],
                "properties": {
                  "model": {
                    "type": "string",
                    "enum": [
                      "text-embedding-3-small",
                      "text-embedding-3-large"
                    ],
                    "description": "Openai Embeddings Model"
                  },
                  "input": {
                    "description": "Openai Embeddings Input",
                    "oneOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 2048,
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 2048,
                        "items": {
                          "type": "array",
                          "minItems": 1,
                          "items": {
                            "type": "integer",
                            "minimum": 0
                          }
                        }
                      }
                    ]
                  },
                  "encoding_format": {
                    "type": "string",
                    "description": "Openai Embeddings Encoding Format",
                    "enum": [
                      "float",
                      "base64"
                    ],
                    "default": "float"
                  },
                  "dimensions": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Openai Embeddings Dimensions"
                  }
                }
              },
              "example": {
                "model": "text-embedding-3-small",
                "input": "Hello!"
              }
            }
          }
        },
        "operationId": "OpenaicreateOpenaiEmbeddings"
      }
    },
    "/openai/images/generations": {
      "post": {
        "summary": "Openai Images Generations",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "created",
                        "data"
                      ],
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "Openai Images Generations Response 200 Data Url"
                              },
                              "b64_json": {
                                "type": "string",
                                "description": "Openai Images Generations Response 200 Data B64 Json"
                              },
                              "revised_prompt": {
                                "type": "string",
                                "description": "Openai Images Generations Response 200 Data Revised Prompt"
                              }
                            },
                            "description": "Openai Images Generations Response 200 Data"
                          }
                        },
                        "created": {
                          "type": "number"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "task_id"
                      ],
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 200 Task Id"
                        }
                      }
                    }
                  ]
                },
                "example": {
                  "data": [],
                  "created": 0
                }
              }
            },
            "description": "Openai Images Generations Response 200"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Images Generations Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Images Generations Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Images Generations Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Images Generations Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Images Generations Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Images Generations Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 401"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "forbidden",
                          "message": "Sorry! Our Al moderators feel your prompt might be against our community standards."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "forbidden",
                              "description": "Openai Images Generations Response 403 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Sorry! Our Al moderators feel your prompt might be against our community standards.",
                              "description": "Openai Images Generations Response 403 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 403 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 403"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Images Generations Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Images Generations Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Images Generations Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Images Generations Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 500"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "timeout",
                          "message": "Timeout to generate the image."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "timeout",
                              "description": "Openai Images Generations Response 504 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Timeout to generate the image.",
                              "description": "Openai Images Generations Response 504 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Generations Response 504 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Generations Response 504"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Images Generations Param Accept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "prompt",
                  "model"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "A cute baby sea otter",
                    "description": "Openai Images Generations Prompt"
                  },
                  "background": {
                    "enum": [
                      "transparent",
                      "opaque",
                      "auto"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Generations Background"
                  },
                  "model": {
                    "enum": [
                      "dall-e-2",
                      "dall-e-3",
                      "gpt-image-1",
                      "gpt-image-1.5",
                      "gpt-image-2",
                      "gpt-image-2.5-flare",
                      "gpt-image-2.5-flare:reverse",
                      "gpt-image-2.5-flare:official",
                      "gpt-image-2.5-sunburst",
                      "gpt-image-2.5-sunburst:reverse",
                      "gpt-image-2.5-sunburst:official",
                      "gpt-image-2:reverse",
                      "gpt-image-2:official",
                      "nano-banana",
                      "nano-banana-2-lite",
                      "nano-banana-2",
                      "nano-banana-2.1",
                      "nano-banana-pro",
                      "gpt-image-2.6-flare",
                      "gpt-image-2.6-flare:reverse",
                      "gpt-image-2.6-flare:official",
                      "gpt-image-2.6-sunburst",
                      "gpt-image-2.6-sunburst:reverse",
                      "gpt-image-2.6-sunburst:official"
                    ],
                    "type": "string",
                    "description": "Openai Images Generations Model"
                  },
                  "moderation": {
                    "enum": [
                      "low",
                      "auto"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Generations Moderation"
                  },
                  "n": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "default": 1,
                    "example": 1,
                    "description": "Openai Images Generations N"
                  },
                  "output_compression": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 100,
                    "description": "Openai Images Generations Output Compression"
                  },
                  "output_format": {
                    "enum": [
                      "png",
                      "jpeg",
                      "webp",
                      "gif"
                    ],
                    "type": "string",
                    "default": "png",
                    "description": "Openai Images Generations Output Format"
                  },
                  "partial_images": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "default": 0,
                    "description": "Openai Images Generations Partial Images"
                  },
                  "size": {
                    "type": "string",
                    "default": "auto",
                    "example": "1024x1024",
                    "nullable": true,
                    "pattern": "^(auto|\\d+x\\d+)$",
                    "description": "Openai Images Generations Size"
                  },
                  "quality": {
                    "enum": [
                      "auto",
                      "high",
                      "medium",
                      "low",
                      "xhigh",
                      "max",
                      "hd",
                      "standard"
                    ],
                    "type": "string",
                    "default": "auto",
                    "example": "auto",
                    "description": "Openai Images Generations Quality"
                  },
                  "response_format": {
                    "enum": [
                      "url",
                      "b64_json"
                    ],
                    "type": "string",
                    "default": "url",
                    "example": "url",
                    "nullable": true,
                    "description": "Openai Images Generations Response Format"
                  },
                  "style": {
                    "enum": [
                      "vivid",
                      "natural"
                    ],
                    "type": "string",
                    "default": "vivid",
                    "example": "vivid",
                    "description": "Openai Images Generations Style"
                  },
                  "callback_url": {
                    "type": "string",
                    "description": "Openai Images Generations Callback Url"
                  },
                  "async": {
                    "type": "boolean",
                    "description": "Openai Images Generations Async"
                  },
                  "frame_count": {
                    "type": "integer",
                    "minimum": 2,
                    "example": 9,
                    "description": "Openai Images Generations Frame Count",
                    "maximum": 16
                  },
                  "frame_duration_ms": {
                    "type": "integer",
                    "minimum": 20,
                    "example": 200,
                    "description": "Openai Images Generations Frame Duration Ms",
                    "maximum": 655350
                  },
                  "complexity": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Openai Images Generations Complexity"
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "prompt": "A cute baby sea otter",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_1": {
                  "value": {
                    "prompt": "A cute baby sea otter",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_2": {
                  "value": {
                    "prompt": "A wooden bookshelf consisting of three shelves: on the top shelf one book, the second shelf three books, and the bottom shelf seven books.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_3": {
                  "value": {
                    "prompt": "Cinematic minimal portrait of a solitary man standing in an intense orange-to-red gradient environment, strong silhouette lighting, deep shadow contrast, reflective glossy floor, symmetrical composition.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_4": {
                  "value": {
                    "prompt": "Symmetrical design featuring two elegant blue peacocks with detailed feather patterns, surrounded by blue floral elements, intricate vintage botanical ornament, soft beige background, decorative art illustration.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_5": {
                  "value": {
                    "prompt": "Avant-garde sports fashion advertisement, oversized basketball posed like a monumental sculpture, female athlete reclining across the ball's curved surface, giant word 'ELEVATE' in bold typography behind, burnt orange studio backdrop, glossy reflective floor.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_6": {
                  "value": {
                    "prompt": "High-fashion surrealist poster for Rolex. Deep emerald green minimalist studio with polished reflective floor. A massive Rolex watch standing upright like a monument; a male model in tailored dark green suit leans casually against the watch face, wearing a matching Rolex.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_7": {
                  "value": {
                    "prompt": "Ultra-realistic product photography of a rich strawberry soft-serve ice cream in a crispy waffle cone, clean modern premium aesthetic, soft serve vibrant natural pink, sculpted swirl with curled peak, lightly topped with strawberry dust.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_8": {
                  "value": {
                    "prompt": "Hyper-realistic UI/UX mockup on a slim modern laptop on a minimal wooden desk with soft natural daylight; clean SaaS dashboard with elegant typography, glassmorphism cards, smooth gradients, subtle drop shadows, charts, sidebar navigation, macOS-style window frame.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_9": {
                  "value": {
                    "prompt": "9:16 vertical Korean idol portrait photoshoot, 3x3 grid (nine frames), same person in all images, consistent facial features and styling, soft black mist filter effect, lowered contrast, blooming highlights, subtle glow around light sources.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_10": {
                  "value": {
                    "prompt": "Mobile phone photo, old CCD camera aesthetic, harsh flash, grainy, dim messy indoor lighting, candid snapshot feeling, slight motion blur.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_11": {
                  "value": {
                    "prompt": "Create a science fiction movie poster.",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_12": {
                  "value": {
                    "prompt": "以中国连环画（小人书）的风格帮我绘制大闹天宫",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                },
                "prompt_13": {
                  "value": {
                    "prompt": "新中式水墨山水海报，竖版9:16构图，东方极简美学风格，大面积留白，主题是春岚一叶红",
                    "model": "dall-e-2",
                    "n": 1,
                    "size": "1024x1024",
                    "quality": "auto",
                    "response_format": "url",
                    "style": "vivid"
                  }
                }
              }
            }
          },
          "required": true
        },
        "operationId": "createOpenaiImagesGenerations"
      }
    },
    "/openai/responses": {
      "post": {
        "summary": "Openai V1 Responses",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsesResponse"
                },
                "example": {
                  "id": "resp_123",
                  "object": "response",
                  "created_at": 1700000000,
                  "status": "completed",
                  "model": "gpt-5.6-luna",
                  "output": [
                    {
                      "id": "msg_123",
                      "type": "message",
                      "role": "assistant",
                      "status": "completed",
                      "content": [
                        {
                          "type": "output_text",
                          "text": "Done.",
                          "annotations": []
                        }
                      ]
                    }
                  ],
                  "usage": {
                    "input_tokens": 12,
                    "output_tokens": 3,
                    "total_tokens": 15
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsesStreamEvent"
                },
                "example": "event: response.completed\ndata: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_123\",\"object\":\"response\",\"status\":\"completed\",\"model\":\"gpt-5.6-luna\",\"output\":[]}}\n\n"
              }
            },
            "description": "Openai Responses Response 200 2"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Responses Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Responses Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Responses Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Responses Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Responses Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Responses Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Responses Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Responses Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Responses Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Responses Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Responses Response 401"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Responses Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Responses Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Responses Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Responses Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Responses Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Responses Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Responses Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Responses Response 500"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Responses Param Accept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "input"
                ],
                "properties": {
                  "n": {
                    "type": "number",
                    "default": 1,
                    "example": 1,
                    "maximum": 128,
                    "minimum": 1,
                    "nullable": true,
                    "description": "Openai Responses N"
                  },
                  "model": {
                    "enum": [
                      "gpt-6.2-astra",
                      "gpt-6.2-sol",
                      "gpt-6.1-sol",
                      "gpt-6.1-terra",
                      "gpt-6-sol",
                      "gpt-6-luna",
                      "gpt-6-astra",
                      "gpt-5.6-luna",
                      "gpt-5.6-terra",
                      "gpt-5.6-sol-fast",
                      "gpt-5.6-sol",
                      "gpt-5.5",
                      "gpt-5.5-pro",
                      "gpt-5.4",
                      "gpt-5.4-mini",
                      "gpt-5.4-nano",
                      "gpt-5.4-pro",
                      "gpt-5.1",
                      "gpt-5.2",
                      "gpt-5.1-all",
                      "gpt-5",
                      "gpt-5-pro",
                      "gpt-5-mini",
                      "gpt-5-nano",
                      "gpt-4",
                      "gpt-4-all",
                      "gpt-4-turbo",
                      "gpt-4-turbo-preview",
                      "gpt-4-vision-preview",
                      "gpt-4.1",
                      "gpt-4.1-2025-04-14",
                      "gpt-4.1-mini",
                      "gpt-4.1-mini-2025-04-14",
                      "gpt-4.1-nano",
                      "gpt-4.1-nano-2025-04-14",
                      "gpt-4.5-preview",
                      "gpt-4.5-preview-2025-02-27",
                      "gpt-4o",
                      "gpt-4o-2024-05-13",
                      "gpt-4o-2024-08-06",
                      "gpt-4o-2024-11-20",
                      "gpt-4o-all",
                      "gpt-4o-image",
                      "gpt-4o-mini",
                      "gpt-4o-mini-2024-07-18",
                      "gpt-4o-mini-search-preview",
                      "gpt-4o-mini-search-preview-2025-03-11",
                      "gpt-4o-search-preview",
                      "gpt-4o-search-preview-2025-03-11",
                      "gpt-35-turbo-16k",
                      "o1",
                      "o1-2024-12-17",
                      "o1-all",
                      "o1-mini",
                      "o1-mini-2024-09-12",
                      "o1-mini-all",
                      "o1-preview",
                      "o1-preview-2024-09-12",
                      "o1-preview-all",
                      "o1-pro",
                      "o1-pro-2025-03-19",
                      "o1-pro-all",
                      "o3",
                      "o3-2025-04-16",
                      "o3-all",
                      "o3-mini",
                      "o3-mini-2025-01-31",
                      "o3-mini-2025-01-31-high",
                      "o3-mini-2025-01-31-low",
                      "o3-mini-2025-01-31-medium",
                      "o3-mini-all",
                      "o3-mini-high",
                      "o3-mini-high-all",
                      "o3-mini-low",
                      "o3-mini-medium",
                      "o3-pro",
                      "o3-pro-2025-06-10",
                      "o4-mini",
                      "o4-mini-2025-04-16",
                      "o4-mini-all",
                      "o4-mini-high-all"
                    ],
                    "type": "string",
                    "example": "gpt-4o-mini",
                    "description": "Openai Responses Model"
                  },
                  "background": {
                    "type": "boolean",
                    "default": false,
                    "nullable": true,
                    "description": "Openai Responses Background"
                  },
                  "stream": {
                    "type": "boolean",
                    "default": false,
                    "nullable": true,
                    "description": "Openai Responses Stream"
                  },
                  "input": {
                    "$ref": "#/components/schemas/ResponsesInput",
                    "description": "Openai Responses Input 2",
                    "example": [
                      {
                        "type": "message",
                        "role": "user",
                        "content": "Inspect the workspace."
                      },
                      {
                        "type": "custom_tool_call",
                        "call_id": "call_123",
                        "namespace": "workspace",
                        "name": "exec",
                        "input": "read package.json"
                      },
                      {
                        "type": "custom_tool_call_output",
                        "call_id": "call_123",
                        "output": "package contents"
                      }
                    ]
                  },
                  "tools": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "$ref": "#/components/schemas/ResponsesTool"
                    },
                    "description": "Openai Responses Tools"
                  },
                  "max_tokens": {
                    "type": "number",
                    "nullable": true,
                    "description": "Openai Responses Max Tokens"
                  },
                  "temperature": {
                    "type": "number",
                    "default": 1,
                    "example": 1,
                    "maximum": 2,
                    "minimum": 0,
                    "nullable": true,
                    "description": "Openai Responses Temperature"
                  },
                  "response_format": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "enum": [
                          "text",
                          "json_object"
                        ],
                        "type": "string",
                        "default": "text",
                        "example": "json_object",
                        "description": "Openai Responses Response Format Type"
                      }
                    },
                    "description": "Openai Responses Response Format"
                  },
                  "tool_choice": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "none",
                          "auto",
                          "required"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": true
                      }
                    ],
                    "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Tool Choice.C7B5D99A6584"
                  },
                  "parallel_tool_calls": {
                    "type": "boolean",
                    "default": true
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reasoning": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Openapi.Ed972A38Ecef4Fcbaf33750De42D25Dc.Reasoning.592Bd0324Af0"
                  },
                  "text": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "max_output_tokens": {
                    "type": "integer",
                    "minimum": 1,
                    "nullable": true
                  },
                  "store": {
                    "type": "boolean",
                    "default": true,
                    "nullable": true
                  },
                  "stream_options": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              },
              "example": {
                "n": 1,
                "model": "gpt-4o-mini",
                "input": [
                  {
                    "role": "user",
                    "content": "A cute cat playing piano"
                  }
                ],
                "temperature": 1,
                "response_format": {
                  "type": "json_object"
                }
              }
            }
          },
          "required": true
        },
        "operationId": "OpenaicreateOpenaiResponses",
        "description": "Openai Responses Billing Description"
      }
    },
    "/openai/images/edits": {
      "post": {
        "summary": "Openai Images Edits",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "created",
                        "data"
                      ],
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "Openai Images Edits Response 200 Data Url"
                              },
                              "b64_json": {
                                "type": "string",
                                "description": "Openai Images Edits Response 200 Data B64 Json"
                              },
                              "revised_prompt": {
                                "type": "string",
                                "description": "Openai Images Edits Response 200 Data Revised Prompt"
                              }
                            },
                            "description": "Openai Images Edits Response 200 Data"
                          }
                        },
                        "created": {
                          "type": "number"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "task_id"
                      ],
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 200 Task Id"
                        }
                      }
                    }
                  ]
                },
                "example": {
                  "data": [],
                  "created": 0
                }
              }
            },
            "description": "Openai Images Edits Response 200"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Images Edits Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Images Edits Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Images Edits Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Images Edits Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Images Edits Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Images Edits Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 401"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "forbidden",
                          "message": "Sorry! Our Al moderators feel your prompt might be against our community standards."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "forbidden",
                              "description": "Openai Images Edits Response 403 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Sorry! Our Al moderators feel your prompt might be against our community standards.",
                              "description": "Openai Images Edits Response 403 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 403 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 403"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Images Edits Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Images Edits Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Images Edits Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Images Edits Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 500"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "timeout",
                          "message": "Timeout to generate the image."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "timeout",
                              "description": "Openai Images Edits Response 504 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Timeout to generate the image.",
                              "description": "Openai Images Edits Response 504 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Images Edits Response 504 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Images Edits Response 504"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Images Edits Param Accept"
          },
          {
            "in": "header",
            "name": "Content-Type",
            "schema": {
              "enum": [
                "multipart/form-data",
                "application/json"
              ],
              "type": "string"
            },
            "required": true,
            "description": "Openai Images Edits Param Content Type"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "image",
                  "prompt"
                ],
                "properties": {
                  "image": {
                    "oneOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uri"
                        },
                        "maxItems": 16
                      }
                    ],
                    "example": "https://platform.cdn.acedata.cloud/gpt-image/cb104e35-af1f-45be-9fac-b62e2b256753_0.png",
                    "description": "Openai Images Edits Image"
                  },
                  "prompt": {
                    "type": "string",
                    "example": "Turn this photo into a Studio Ghibli style painting.",
                    "description": "Openai Images Edits Prompt"
                  },
                  "model": {
                    "enum": [
                      "dall-e-2",
                      "dall-e-3",
                      "gpt-image-1",
                      "gpt-image-1.5",
                      "gpt-image-2",
                      "gpt-image-2.5-flare",
                      "gpt-image-2.5-flare:reverse",
                      "gpt-image-2.5-flare:official",
                      "gpt-image-2.5-sunburst",
                      "gpt-image-2.5-sunburst:reverse",
                      "gpt-image-2.5-sunburst:official",
                      "gpt-image-2:reverse",
                      "gpt-image-2:official",
                      "nano-banana",
                      "nano-banana-2-lite",
                      "nano-banana-2",
                      "nano-banana-2.1",
                      "nano-banana-pro",
                      "gpt-image-2.6-flare",
                      "gpt-image-2.6-flare:reverse",
                      "gpt-image-2.6-flare:official",
                      "gpt-image-2.6-sunburst",
                      "gpt-image-2.6-sunburst:reverse",
                      "gpt-image-2.6-sunburst:official"
                    ],
                    "type": "string",
                    "default": "dall-e-3",
                    "description": "Openai Images Edits Model"
                  },
                  "n": {
                    "type": "integer",
                    "default": 1,
                    "minimum": 1,
                    "maximum": 10,
                    "description": "Openai Images Edits N"
                  },
                  "background": {
                    "enum": [
                      "transparent",
                      "opaque",
                      "auto"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Edits Background"
                  },
                  "input_fidelity": {
                    "enum": [
                      "high",
                      "low"
                    ],
                    "type": "string",
                    "description": "Openai Images Edits Input Fidelity"
                  },
                  "output_format": {
                    "enum": [
                      "png",
                      "jpeg",
                      "webp",
                      "gif"
                    ],
                    "type": "string",
                    "default": "png",
                    "description": "Openai Images Edits Output Format"
                  },
                  "output_compression": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 100,
                    "description": "Openai Images Edits Output Compression"
                  },
                  "quality": {
                    "enum": [
                      "auto",
                      "high",
                      "medium",
                      "low",
                      "xhigh",
                      "max",
                      "standard"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Edits Quality"
                  },
                  "size": {
                    "type": "string",
                    "nullable": true,
                    "pattern": "^(auto|\\d+x\\d+)$",
                    "description": "Openai Images Edits Size",
                    "default": "auto"
                  },
                  "response_format": {
                    "enum": [
                      "url",
                      "b64_json"
                    ],
                    "type": "string",
                    "default": "url",
                    "nullable": true,
                    "description": "Openai Images Edits Response Format"
                  },
                  "callback_url": {
                    "type": "string",
                    "description": "Openai Images Edits Callback Url"
                  },
                  "async": {
                    "type": "boolean",
                    "description": "Openai Images Edits Async"
                  },
                  "frame_count": {
                    "type": "integer",
                    "minimum": 2,
                    "example": 9,
                    "description": "Openai Images Edits Frame Count",
                    "maximum": 16
                  },
                  "frame_duration_ms": {
                    "type": "integer",
                    "minimum": 20,
                    "example": 200,
                    "description": "Openai Images Edits Frame Duration Ms",
                    "maximum": 655350
                  },
                  "complexity": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Openai Images Edits Complexity"
                  },
                  "markup": {
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object",
                        "required": [
                          "image_url"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "image_url": {
                            "type": "string"
                          }
                        }
                      }
                    ],
                    "description": "Openai Images Edits Markup"
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "image",
                  "prompt"
                ],
                "properties": {
                  "image": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "maxItems": 16,
                    "description": "Openai Images Edits Multipart Form Data Image"
                  },
                  "prompt": {
                    "type": "string",
                    "description": "Openai Images Edits Multipart Form Data Prompt"
                  },
                  "background": {
                    "enum": [
                      "transparent",
                      "opaque",
                      "auto"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Edits Multipart Form Data Background"
                  },
                  "input_fidelity": {
                    "enum": [
                      "high",
                      "low"
                    ],
                    "type": "string",
                    "description": "Openai Images Edits Multipart Form Data Input Fidelity"
                  },
                  "mask": {
                    "type": "string",
                    "format": "binary",
                    "description": "Openai Images Edits Multipart Form Data Mask",
                    "example": "mask.png"
                  },
                  "model": {
                    "enum": [
                      "dall-e-2",
                      "dall-e-3",
                      "gpt-image-1",
                      "gpt-image-1.5",
                      "gpt-image-2",
                      "gpt-image-2.5-flare",
                      "gpt-image-2.5-flare:reverse",
                      "gpt-image-2.5-flare:official",
                      "gpt-image-2.5-sunburst",
                      "gpt-image-2.5-sunburst:reverse",
                      "gpt-image-2.5-sunburst:official",
                      "gpt-image-2:reverse",
                      "gpt-image-2:official",
                      "nano-banana",
                      "nano-banana-2-lite",
                      "nano-banana-2",
                      "nano-banana-2.1",
                      "nano-banana-pro",
                      "gpt-image-2.6-flare",
                      "gpt-image-2.6-flare:reverse",
                      "gpt-image-2.6-flare:official",
                      "gpt-image-2.6-sunburst",
                      "gpt-image-2.6-sunburst:reverse",
                      "gpt-image-2.6-sunburst:official"
                    ],
                    "type": "string",
                    "default": "dall-e-3",
                    "description": "Openai Images Edits Multipart Form Data Model"
                  },
                  "n": {
                    "type": "integer",
                    "default": 1,
                    "minimum": 1,
                    "maximum": 10,
                    "description": "Openai Images Edits Multipart Form Data N"
                  },
                  "output_compression": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "default": 100,
                    "description": "Openai Images Edits Multipart Form Data Output Compression"
                  },
                  "output_format": {
                    "enum": [
                      "png",
                      "jpeg",
                      "webp",
                      "gif"
                    ],
                    "type": "string",
                    "default": "png",
                    "description": "Openai Images Edits Multipart Form Data Output Format"
                  },
                  "partial_images": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "default": 0,
                    "description": "Openai Images Edits Multipart Form Data Partial Images"
                  },
                  "quality": {
                    "enum": [
                      "auto",
                      "high",
                      "medium",
                      "low",
                      "xhigh",
                      "max",
                      "standard"
                    ],
                    "type": "string",
                    "default": "auto",
                    "description": "Openai Images Edits Multipart Form Data Quality"
                  },
                  "response_format": {
                    "enum": [
                      "url",
                      "b64_json"
                    ],
                    "type": "string",
                    "default": "url",
                    "example": "url",
                    "nullable": true,
                    "description": "Openai Images Edits Multipart Form Data Response Format"
                  },
                  "size": {
                    "type": "string",
                    "example": "1024x1024",
                    "nullable": true,
                    "pattern": "^(auto|\\d+x\\d+)$",
                    "description": "Openai Images Edits Multipart Form Data Size",
                    "default": "auto"
                  },
                  "callback_url": {
                    "type": "string",
                    "description": "Openai Images Edits Multipart Form Data Callback Url"
                  },
                  "async": {
                    "type": "boolean",
                    "description": "Openai Images Edits Multipart Form Data Async"
                  },
                  "frame_count": {
                    "type": "integer",
                    "minimum": 2,
                    "example": 9,
                    "description": "Openai Images Edits Frame Count",
                    "maximum": 16
                  },
                  "frame_duration_ms": {
                    "type": "integer",
                    "minimum": 20,
                    "example": 200,
                    "description": "Openai Images Edits Frame Duration Ms",
                    "maximum": 655350
                  },
                  "complexity": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Openai Images Edits Complexity"
                  },
                  "markup": {
                    "type": "string",
                    "format": "binary",
                    "description": "Openai Images Edits Markup"
                  }
                }
              }
            }
          },
          "required": true
        },
        "operationId": "createOpenaiImagesEdits"
      }
    },
    "/v1/audio/speech": {
      "post": {
        "summary": "Openai Audio Speech",
        "description": "Openai Audio Speech",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "input"
                ],
                "example": {
                  "model": "tts-1-hd",
                  "input": "Hello from AceData Cloud.",
                  "voice": "nova",
                  "response_format": "mp3"
                },
                "properties": {
                  "model": {
                    "type": "string",
                    "enum": [
                      "tts-1",
                      "tts-1-hd"
                    ],
                    "default": "tts-1-hd",
                    "description": "Openai Audio Speech Model"
                  },
                  "input": {
                    "type": "string",
                    "description": "Openai Audio Speech Input"
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "alloy",
                      "echo",
                      "fable",
                      "onyx",
                      "nova",
                      "shimmer"
                    ],
                    "default": "alloy",
                    "description": "Openai Audio Speech Voice"
                  },
                  "response_format": {
                    "type": "string",
                    "enum": [
                      "mp3",
                      "opus",
                      "aac",
                      "flac",
                      "wav",
                      "pcm"
                    ],
                    "default": "mp3",
                    "description": "Openai Audio Speech Response Format"
                  },
                  "speed": {
                    "type": "number",
                    "default": 1.0,
                    "description": "Openai Audio Speech Speed"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Openai Audio Speech Response 200",
            "content": {
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "Openai Audio Speech Response 200 Audio"
                }
              }
            }
          },
          "400": {
            "description": "Response 400",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "bad_request",
                      "message": "Please provide a non-empty input text to synthesize."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Response 401",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "authentication_failed",
                      "message": "The token is invalid."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Response 403",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "used_up",
                      "message": "Your balance is not enough."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "Response 429",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "too_many_requests",
                      "message": "Too many requests, please try again later."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "500": {
            "description": "Response 500",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "api_error",
                      "message": "Internal server error, please contact support."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "operationId": "createV1AudioSpeech"
      }
    },
    "/v1/audio/transcriptions": {
      "post": {
        "summary": "Openai Audio Transcriptions",
        "description": "Openai Audio Transcriptions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Openai Audio Transcriptions File"
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "whisper-1",
                      "gpt-transcribe"
                    ],
                    "default": "whisper-1",
                    "description": "Openai Audio Transcriptions Model"
                  },
                  "language": {
                    "type": "string",
                    "description": "Openai Audio Transcriptions Language"
                  },
                  "prompt": {
                    "type": "string",
                    "description": "Openai Audio Transcriptions Prompt"
                  },
                  "response_format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "text",
                      "srt",
                      "verbose_json",
                      "vtt"
                    ],
                    "default": "json",
                    "description": "Openai Audio Transcriptions Response Format"
                  },
                  "temperature": {
                    "type": "number",
                    "default": 0,
                    "description": "Openai Audio Transcriptions Temperature"
                  },
                  "timestamp_granularities[]": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "word",
                        "segment"
                      ]
                    },
                    "description": "Openai Audio Transcriptions Timestamp Granularities"
                  },
                  "stream": {
                    "type": "boolean",
                    "default": false,
                    "description": "Openai Audio Transcriptions Stream"
                  },
                  "languages[]": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Openai Audio Transcriptions Languages"
                  },
                  "keywords[]": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Openai Audio Transcriptions Keywords"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Openai Audio Transcriptions Response 200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "text": "Ace Data Cloud Platform is testing the speech recognition endpoint. The quick brown fox jumps over the lazy dog."
                  },
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Openai Audio Transcriptions Response 200 Text"
                    }
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "Openai Audio Transcriptions Response 200 Plain"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Openai Audio Transcriptions Response 200 Stream",
                  "example": "data: {\"type\":\"transcript.text.delta\",\"delta\":\"Hello\"}\n\ndata: {\"type\":\"transcript.text.done\",\"text\":\"Hello world\",\"usage\":{\"type\":\"tokens\",\"input_tokens\":14,\"output_tokens\":3,\"total_tokens\":17}}\n\n"
                }
              }
            }
          },
          "400": {
            "description": "Response 400",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "bad_request",
                      "message": "Please provide an audio `file` to transcribe."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Response 401",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "authentication_failed",
                      "message": "The token is invalid."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Response 403",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "used_up",
                      "message": "Your balance is not enough."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "413": {
            "description": "Openai Audio Transcriptions Response 413",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "request_too_large",
                      "message": "File too large"
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "Response 429",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "too_many_requests",
                      "message": "Transcription service is busy, please try again later."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "500": {
            "description": "Response 500",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "error": {
                      "code": "api_error",
                      "message": "Failed to transcribe the audio, please try again later."
                    },
                    "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "operationId": "V1createV1AudioTranscriptions"
      }
    },
    "/openai/tasks": {
      "post": {
        "summary": "Tasks",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/OpenaiTaskRecord"
                    },
                    {
                      "type": "object",
                      "required": [
                        "items",
                        "count",
                        "has_more",
                        "count_is_exact",
                        "count_relation"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/OpenaiTaskRecord"
                          },
                          "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Items.06F43321E55C"
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.Count.2791694C6B64"
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Openai Tasks Has More"
                        },
                        "count_is_exact": {
                          "type": "boolean",
                          "description": "Openai Tasks Count Is Exact"
                        },
                        "count_relation": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "gte"
                          ],
                          "description": "Openai Tasks Count Relation"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "description": "Openapi.8Ff29E12B8144484Ab50D39773A7A563.2.Adddb6F1E110"
                    }
                  ]
                },
                "example": {
                  "id": "42b2ab0f-5676-453b-bd23-9ee001b888ae",
                  "_id": "65ede215550a4144a5fcebac",
                  "type": "images",
                  "trace_id": "b0a683a4-aecc-450d-849e-c9f0730826a2",
                  "api_id": "8f01fe72-8a3e-4872-8d8d-330cde179b3a",
                  "application_id": "e2ee38ba-19ea-4da9-9f3f-4f8567d19feb",
                  "credential_id": null,
                  "user_id": null,
                  "request": {
                    "model": "gpt-image-1",
                    "prompt": "a cute corgi astronaut on Mars",
                    "size": "1024x1024",
                    "n": 1
                  },
                  "response": {
                    "success": true,
                    "task_id": "42b2ab0f-5676-453b-bd23-9ee001b888ae",
                    "trace_id": "b0a683a4-aecc-450d-849e-c9f0730826a2",
                    "created": 1761432000,
                    "data": [
                      {
                        "url": "https://platform.cdn.acedata.cloud/gpt-image/cb104e35-af1f-45be-9fac-b62e2b256753_0.png",
                        "revised_prompt": "A cute corgi astronaut on Mars."
                      }
                    ]
                  },
                  "created_at": 1761432000.063,
                  "started_at": 1761432000.069,
                  "finished_at": 1761432015.098,
                  "elapsed": 15.029
                }
              }
            },
            "description": "Openai Tasks Response 200"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "token_mismatched",
                          "message": "The specified token is not matched with API."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "token_mismatched",
                              "description": "Openai Tasks Response 400 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is not matched with API.",
                              "description": "Openai Tasks Response 400 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Tasks Response 400 Trace Id"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_not_implemented",
                          "message": "The API is not implemented."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_not_implemented",
                              "description": "Openai Tasks Response 400 Error Code 2"
                            },
                            "message": {
                              "type": "string",
                              "example": "The API is not implemented.",
                              "description": "Openai Tasks Response 400 Error Message 2"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Tasks Response 400 Trace Id 2"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Tasks Response 400"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "invalid_token",
                          "message": "The specified token is invalid or wrong."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "invalid_token",
                              "description": "Openai Tasks Response 401 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "The specified token is invalid or wrong.",
                              "description": "Openai Tasks Response 401 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Tasks Response 401 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Tasks Response 401"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "too_many_requests",
                          "message": "You have exceeded the rate limit."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "too_many_requests",
                              "description": "Openai Tasks Response 429 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "You have exceeded the rate limit.",
                              "description": "Openai Tasks Response 429 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Tasks Response 429 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Tasks Response 429"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "example": {
                        "error": {
                          "code": "api_error",
                          "message": "Internal server error."
                        },
                        "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
                      },
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "api_error",
                              "description": "Openai Tasks Response 500 Error Code"
                            },
                            "message": {
                              "type": "string",
                              "example": "Internal server error.",
                              "description": "Openai Tasks Response 500 Error Message"
                            }
                          }
                        },
                        "trace_id": {
                          "type": "string",
                          "description": "Openai Tasks Response 500 Trace Id"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "description": "Openai Tasks Response 500"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "accept",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string"
            },
            "required": false,
            "description": "Openai Tasks Param Accept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "retrieve",
                      "retrieve_batch"
                    ],
                    "default": "retrieve",
                    "description": "Openai Tasks Action"
                  },
                  "id": {
                    "type": "string",
                    "description": "Openai Tasks Id"
                  },
                  "trace_id": {
                    "type": "string",
                    "description": "Openai Tasks Trace Id"
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Openai Tasks Ids"
                  },
                  "trace_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Openai Tasks Trace Ids"
                  },
                  "application_id": {
                    "type": "string",
                    "description": "Openai Tasks Application Id"
                  },
                  "user_id": {
                    "type": "string",
                    "description": "Openai Tasks User Id"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "images",
                      "images_generations",
                      "images_edits"
                    ],
                    "description": "Openai Tasks Type"
                  },
                  "offset": {
                    "type": "integer",
                    "default": 0,
                    "description": "Openai Tasks Offset"
                  },
                  "limit": {
                    "type": "integer",
                    "default": 12,
                    "description": "Openai Tasks Limit"
                  },
                  "created_at_min": {
                    "type": "number",
                    "description": "Openai Tasks Created At Min"
                  },
                  "created_at_max": {
                    "type": "number",
                    "description": "Openai Tasks Created At Max"
                  },
                  "count_mode": {
                    "type": "string",
                    "enum": [
                      "none",
                      "exact"
                    ],
                    "default": "none",
                    "description": "Openai Tasks Count Mode"
                  }
                },
                "example": {
                  "action": "retrieve",
                  "id": "task-id"
                }
              }
            }
          },
          "required": true
        },
        "operationId": "queryOpenaiTasks",
        "description": "Query tasks created by /v1/images/generations or /v1/images/edits with callback_url."
      }
    }
  }
}
