{
  "info": {
    "name": "UltraGPT API",
    "description": "OpenAI- and Anthropic-compatible API for every model on UltraGPT. Billed per request from your prepaid credit balance. Docs: https://developers.ultragpt.pro/docs\n\nSet the apiKey variable (collection > Variables). Generated from openapi.json 2026-10-02.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "2026-10-02"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.ultragpt.pro/v1"
    },
    {
      "key": "apiKey",
      "value": ""
    },
    {
      "key": "model",
      "value": "gpt-5"
    }
  ],
  "item": [
    {
      "name": "Chat",
      "description": "OpenAI chat completions, Anthropic messages, the Responses API and legacy completions.",
      "item": [
        {
          "name": "Create a chat completion",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/chat/completions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "chat",
                "completions"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createChatCompletion"
          }
        },
        {
          "name": "Create a message (Anthropic Messages API)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"max_tokens\": 1,\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createMessage"
          }
        },
        {
          "name": "Estimate prompt tokens",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/count_tokens",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "count_tokens"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: countMessageTokens"
          }
        },
        {
          "name": "Create a response (OpenAI Responses API)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/responses",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "responses"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"input\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createResponse"
          }
        },
        {
          "name": "Retrieve a stored response",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/responses/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "responses",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: getResponse"
          }
        },
        {
          "name": "Delete a stored response",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/responses/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "responses",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: deleteResponse"
          }
        },
        {
          "name": "List a response's input items",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/responses/:id/input_items",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "responses",
                ":id",
                "input_items"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: listResponseInputItems"
          }
        },
        {
          "name": "Create a text completion (legacy)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/completions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "completions"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"prompt\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createCompletion"
          }
        }
      ]
    },
    {
      "name": "Embeddings",
      "description": "Text embeddings (OpenAI shape).",
      "item": [
        {
          "name": "Create embeddings",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/embeddings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "embeddings"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"input\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createEmbedding"
          }
        }
      ]
    },
    {
      "name": "Images",
      "description": "Image generation and editing.",
      "item": [
        {
          "name": "Generate images",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/images/generations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "images",
                "generations"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"prompt\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createImage"
          }
        },
        {
          "name": "Edit images",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/images/edits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "images",
                "edits"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "model",
                  "type": "text",
                  "value": "",
                  "disabled": false
                },
                {
                  "key": "prompt",
                  "type": "text",
                  "value": "",
                  "disabled": false
                },
                {
                  "key": "image",
                  "type": "text",
                  "value": "",
                  "disabled": false
                },
                {
                  "key": "n",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "size",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "aspect_ratio",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "quality",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "background",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "response_format",
                  "type": "text",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "OpenAI SDK `images.edit()`. Upload one or more images as multipart `image` (or `image[]`) and describe the edit in `prompt`. Billed like an image generation. `mask` (inpainting) is not supported.\n\noperationId: createImageEdit"
          }
        }
      ]
    },
    {
      "name": "Audio",
      "description": "Speech synthesis, transcription and translation.",
      "item": [
        {
          "name": "Text to speech",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/audio/speech",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audio",
                "speech"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"input\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createSpeech"
          }
        },
        {
          "name": "Speech to text",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/audio/transcriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audio",
                "transcriptions"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "model",
                  "type": "text",
                  "value": "",
                  "disabled": false
                },
                {
                  "key": "language",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "prompt",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "response_format",
                  "type": "text",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "temperature",
                  "type": "text",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "operationId: createTranscription"
          }
        },
        {
          "name": "Translate speech to English text",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/audio/translations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audio",
                "translations"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "model",
                  "type": "text",
                  "value": "",
                  "disabled": false
                }
              ]
            },
            "description": "operationId: createTranslation"
          }
        }
      ]
    },
    {
      "name": "Batch",
      "description": "Files and batches at the discounted batch price.",
      "item": [
        {
          "name": "List files",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/files",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "files"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "after",
                  "value": "",
                  "disabled": true,
                  "description": "Cursor: the last id of the previous page."
                }
              ]
            },
            "description": "operationId: listFiles"
          }
        },
        {
          "name": "Upload a batch input file",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/files",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "files"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "purpose",
                  "type": "text",
                  "value": "",
                  "disabled": false
                }
              ]
            },
            "description": "operationId: uploadFile"
          }
        },
        {
          "name": "Retrieve a file",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/files/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "files",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: retrieveFile"
          }
        },
        {
          "name": "Delete a file",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/files/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "files",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: deleteFile"
          }
        },
        {
          "name": "Download a file's content",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/files/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "files",
                ":id",
                "content"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: downloadFile"
          }
        },
        {
          "name": "List batches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/batches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "batches"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "after",
                  "value": "",
                  "disabled": true,
                  "description": "Cursor: the last id of the previous page."
                }
              ]
            },
            "description": "operationId: listBatches"
          }
        },
        {
          "name": "Create a batch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/batches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "batches"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"input_file_id\": \"\",\n  \"endpoint\": \"/v1/chat/completions\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "operationId: createBatch"
          }
        },
        {
          "name": "Retrieve a batch",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/batches/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "batches",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: retrieveBatch"
          }
        },
        {
          "name": "Cancel a batch",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/batches/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "batches",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: cancelBatch"
          }
        }
      ]
    },
    {
      "name": "Models",
      "description": "The model catalog with prices, modalities and supported parameters.",
      "item": [
        {
          "name": "List models",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/models",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "models"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "supported_parameters",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated, all must match (e.g. tools,reasoning)"
                },
                {
                  "key": "input_modalities",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated"
                },
                {
                  "key": "output_modalities",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated"
                }
              ]
            },
            "description": "operationId: listModels"
          }
        },
        {
          "name": "Count models",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/models/count",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "models",
                "count"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "",
                  "disabled": true,
                  "description": "Model type"
                },
                {
                  "key": "supported_parameters",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated"
                },
                {
                  "key": "input_modalities",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated"
                },
                {
                  "key": "output_modalities",
                  "value": "",
                  "disabled": true,
                  "description": "Comma-separated"
                }
              ]
            },
            "description": "Number of models /models returns for the same filters.\n\noperationId: countModels"
          }
        },
        {
          "name": "Retrieve a model",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/models/:model",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "models",
                ":model"
              ],
              "variable": [
                {
                  "key": "model",
                  "value": ""
                }
              ]
            },
            "description": "operationId: retrieveModel"
          }
        }
      ]
    },
    {
      "name": "Account",
      "description": "The calling key, credits, generations and activity.",
      "item": [
        {
          "name": "The calling key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/key",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "key"
              ]
            },
            "description": "Limits (requests and tokens per minute, spend limit) and spend per period of the calling key.\n\noperationId: getCurrentKey"
          }
        },
        {
          "name": "Credit balance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "credits"
              ]
            },
            "description": "operationId: getCredits"
          }
        },
        {
          "name": "Stats and cost of one request",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/generation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "generation"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "",
                  "disabled": false,
                  "description": ""
                }
              ]
            },
            "description": "operationId: getGeneration"
          }
        },
        {
          "name": "Activity",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/activity",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "activity"
              ],
              "query": [
                {
                  "key": "date",
                  "value": "",
                  "disabled": true,
                  "description": "YYYY-MM-DD"
                },
                {
                  "key": "key_id",
                  "value": "",
                  "disabled": true,
                  "description": "Management keys: one key"
                },
                {
                  "key": "user",
                  "value": "",
                  "disabled": true,
                  "description": "End user (user / safety_identifier)"
                }
              ]
            },
            "description": "Daily usage per model and endpoint over the last 30 days.\n\noperationId: listActivity"
          }
        },
        {
          "name": "Look up generations",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/generations/lookup",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "generations",
                "lookup"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"ids\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Stats and billed cost of up to 1000 requests by id. Read-only keys allowed.\n\noperationId: lookupGenerations"
          }
        }
      ]
    },
    {
      "name": "Utilities",
      "description": "Rerank, moderation and web search.",
      "item": [
        {
          "name": "Rerank documents",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/rerank",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "rerank"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"query\": \"\",\n  \"documents\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Order documents by relevance to a query (Cohere-compatible). Billed per search unit.\n\noperationId: createRerank"
          }
        },
        {
          "name": "Create moderation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/moderations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "moderations"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"input\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Classify text / image input for harmful content (OpenAI shape). Free.\n\noperationId: createModeration"
          }
        },
        {
          "name": "Web search",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/search",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "search"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"query\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Standalone web search; pass the engine in search_tool_name. Billed per query.\n\noperationId: search"
          }
        },
        {
          "name": "Web search with an engine",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/search/:engine",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "search",
                ":engine"
              ],
              "variable": [
                {
                  "key": "engine",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"query\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Standalone web search on one engine (GET /models?type=search lists them).\n\noperationId: searchWithEngine"
          }
        }
      ]
    },
    {
      "name": "Presets",
      "description": "Reusable request configs (`@preset/<slug>`). Writes need a management key.",
      "item": [
        {
          "name": "List presets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/presets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "presets"
              ]
            },
            "description": "Presets of the key's workspace. Use as model \"@preset/{slug}\".\n\noperationId: listPresets"
          }
        },
        {
          "name": "Create preset",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/presets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "presets"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"slug\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Management keys only.\n\noperationId: createPreset"
          }
        },
        {
          "name": "Get preset",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/presets/:slug",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "presets",
                ":slug"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            },
            "description": "With version history.\n\noperationId: getPreset"
          }
        },
        {
          "name": "Update preset",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/presets/:slug",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "presets",
                ":slug"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"slug\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Management keys only; a config change creates a new version.\n\noperationId: updatePreset"
          }
        },
        {
          "name": "Delete preset",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/presets/:slug",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "presets",
                ":slug"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": ""
                }
              ]
            },
            "description": "Management keys only.\n\noperationId: deletePreset"
          }
        }
      ]
    },
    {
      "name": "Keys",
      "description": "Provision keys programmatically. Management keys only.",
      "item": [
        {
          "name": "List keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "description": "Management keys only: keys of the workspace with monthly usage and remaining limit.\n\noperationId: listKeys"
          }
        },
        {
          "name": "Create key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Management keys only. `limit` + `limit_reset` set a spend limit per day, ISO week, month or lifetime. The key string is returned once.\n\noperationId: createKey"
          }
        },
        {
          "name": "Get key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Management keys only.\n\noperationId: getKey"
          }
        },
        {
          "name": "Update key",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Management keys only.\n\noperationId: updateKey"
          }
        },
        {
          "name": "Revoke key",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Management keys only.\n\noperationId: deleteKey"
          }
        }
      ]
    },
    {
      "name": "Videos",
      "description": "Asynchronous video generation: create, poll, download.",
      "item": [
        {
          "name": "List videos",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "",
                  "disabled": true,
                  "description": ""
                },
                {
                  "key": "after",
                  "value": "",
                  "disabled": true,
                  "description": "Cursor: the last id of the previous page."
                }
              ]
            },
            "description": "operationId: listVideos"
          }
        },
        {
          "name": "Create a video",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"{{model}}\",\n  \"prompt\": \"Hello world\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Starts an asynchronous text- or image-to-video job. Billed the provider cost when it completes; failed clips are free.\n\noperationId: createVideo"
          }
        },
        {
          "name": "Retrieve a video",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: retrieveVideo"
          }
        },
        {
          "name": "Delete a video",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "operationId: deleteVideo"
          }
        },
        {
          "name": "Download a video",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos",
                ":id",
                "content"
              ],
              "query": [
                {
                  "key": "variant",
                  "value": "",
                  "disabled": true,
                  "description": ""
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "302 redirect to the MP4 (or the poster with ?variant=thumbnail). 409 video_not_ready until completed.\n\noperationId: downloadVideoContent"
          }
        }
      ]
    }
  ]
}
