Creative Lab model catalog
Request for model list
Section titled “Request for model list”https://gptunnel.ru/api/v2/media/modelsReturns the models available to your API key, filtered by the key’s allowed-model list when configured. Each entry includes a parameter schema (params), an input file schema (inputs) and pricing. Use the current schemas to see which parameters and inputs a model accepts.
For speech synthesis models, get allowed voice values from the separate voice catalog.
Query parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Model type filter (e.g. IMAGE, VIDEO, MUSIC or 3D) |
The API ignores unrecognized query parameters, including _, page and limit. Use the documented filters to select models.
Example request
Section titled “Example request”Set the GPTUNNEL_API_KEY environment variable.
import jsonimport osfrom urllib.request import Request, urlopen
url = 'https://gptunnel.ru/api/v2/media/models'request = Request(url, headers={'Authorization': os.environ['GPTUNNEL_API_KEY']})with urlopen(request, timeout=30) as response: print(json.load(response)['models'])curl --fail-with-body 'https://gptunnel.ru/api/v2/media/models' \ --header "Authorization: ${GPTUNNEL_API_KEY:?Set GPTUNNEL_API_KEY}"const key = process.env.GPTUNNEL_API_KEYif (!key) throw new Error('Set GPTUNNEL_API_KEY')const response = await fetch('https://gptunnel.ru/api/v2/media/models', { headers: { Authorization: key } })if (!response.ok) throw new Error(await response.text())const data = await response.json()console.log(data.models)Example response
Section titled “Example response”This excerpt for kling-v3 shows one entry from params. Before creating a task, read the complete parameter and input-role schemas from the catalog. The label may contain a localization key. In requests, use the parameter’s key and the selected option’s value.
{ "code": 0, "models": [ { "id": "kling-v3", "type": "VIDEO", "prompt": "required", "params": [ { "key": "resolution", "type": "enum", "label": "wfc_param_quality", "options": [ { "value": "720p", "label": "720P" }, { "value": "1080p", "label": "1080P" } ], "default": "1080p" } ] } ]}Model Fields
Section titled “Model Fields”| Parameter | Type | Description |
|---|---|---|
id* | string | Model ID to send in the model field when creating a task. |
type | string | Output type: IMAGE, VIDEO, MUSIC, or 3D. MUSIC covers speech synthesis and music generation. |
price* | number | Discounted rate in RUB for the unit in price_unit. per_generation is a rate for one generation. Rates per_second, per_megapixel, and per_1k_tokens are multiplied by duration, area, or token count. Use /media/price to quote a task. Input-billed models return 0 and omit price_unit. |
price_unit | string | The unit used to calculate price: per_generation (one generation), per_second (one second of output), per_megapixel (one megapixel of output), or per_1k_tokens (1,000 output tokens). The list may grow. If this field is absent, use price_input to find the rate for the input. |
price_input | number | Discounted rate in RUB for models billed on input, such as prompt characters, prompt tokens, or megapixels of attached images. See price_input_unit for the billing unit. |
price_input_unit | string | Unit billed in price_input: per_character, per_1k_characters, per_token, per_1k_tokens, or per_megapixel. This list may expand. See the note below. If the field is absent, input is not a separate charge |
discount_percent | number | Percentage discount already included in price and price_input for the same parameters. For input-billed models, price is 0 and the discount appears in price_input. This field is omitted if there is no discount. |
pricing | object | Rules for calculating the base price from model parameters, before any discounts. Available for some models. |
prompt* | string | Prompt requirement: required, optional, or none. |
max_length | number | Maximum prompt length in characters, based on the model’s available routes. |
max_bytes | number | Maximum prompt text size in UTF-8 bytes, taking into account available model routes. |
prompt_optional_when | object | Conditions for omitting prompt. For Suno, both is_custom and instrumental must be true. |
params* | array | Schema for configurable generation parameters, including each parameter’s key, type, allowed values, and default. |
inputs | array | Input file schema with roles, supported formats, file counts, and limits. |
deprecated | boolean | true means the model has reached its retirement date. Requests use a replacement or return HTTP 410. While false, the model operates normally. |
deprecated_at | string | The model’s retirement date and time in ISO 8601 format. A future date gives advance notice. The model remains available until then. |
deprecation_redirect_to | string | null | Replacement model ID used after retirement. The originally requested model’s rate applies. null means no replacement, so task creation returns HTTP 410 after retirement. |
Prompt length
Section titled “Prompt length”Check the model’s max_length and max_bytes fields alongside prompt. An omitted field means the model catalog declares no limit for that unit. If both fields are present, the prompt must satisfy both limits. For a model with multiple routes, the API reports the maximum for each unit separately. An individual provider may enforce a stricter combination of the two limits.
Once a model reaches its retirement date and a replacement takes over, prompt, max_length, and max_bytes describe the replacement model’s requirements. The original model’s requirements apply while it still handles requests.
With max_bytes: 4096, a prompt can contain 2,048 copies of the Cyrillic letter “я”, which takes two bytes in UTF-8. Price quotes and task creation enforce the same byte limit. With 2,049 copies, the API returns HTTP 400 with code: 3 and the following details array.
[{ "key": "prompt", "message": "prompt is too long, max 4096 bytes (got 4098)" }]Example of a model with an announced retirement date.
{ "id": "kling-v2", "code": "kling-v2", "type": "VIDEO", "price": 210, "deprecated": false, "deprecated_at": "2026-09-01T00:00:00.000Z", "deprecation_redirect_to": "kling-v3"}