Skip to content

Creative Lab model catalog

GEThttps://gptunnel.ru/api/v2/media/models

Returns 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

ParameterTypeDescription
typestringModel 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.

Set the GPTUNNEL_API_KEY environment variable.

import json
import os
from 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'])

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"
}
]
}
]
}
ParameterTypeDescription
id*stringModel ID to send in the model field when creating a task.
typestringOutput type: IMAGE, VIDEO, MUSIC, or 3D. MUSIC covers speech synthesis and music generation.
price*numberDiscounted 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_unitstringThe 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_inputnumberDiscounted 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_unitstringUnit 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_percentnumberPercentage 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.
pricingobjectRules for calculating the base price from model parameters, before any discounts. Available for some models.
prompt*stringPrompt requirement: required, optional, or none.
max_lengthnumberMaximum prompt length in characters, based on the model’s available routes.
max_bytesnumberMaximum prompt text size in UTF-8 bytes, taking into account available model routes.
prompt_optional_whenobjectConditions for omitting prompt. For Suno, both is_custom and instrumental must be true.
params*arraySchema for configurable generation parameters, including each parameter’s key, type, allowed values, and default.
inputsarrayInput file schema with roles, supported formats, file counts, and limits.
deprecatedbooleantrue means the model has reached its retirement date. Requests use a replacement or return HTTP 410. While false, the model operates normally.
deprecated_atstringThe model’s retirement date and time in ISO 8601 format. A future date gives advance notice. The model remains available until then.
deprecation_redirect_tostring | nullReplacement model ID used after retirement. The originally requested model’s rate applies. null means no replacement, so task creation returns HTTP 410 after retirement.

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"
}