Вайб-Маркетолог Generate API
Spend balance to create content
Spend balance to create content
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vibemarketolog-ru:vibemarketolog-ru-generate-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Вайб-Маркетолог Agent Generate API
version: 1.0.0
description: 'Agent API for AI agents: generate video/image/music/voice/text with 170+ neural models, run Yandex Direct autopilot. Discovery (capabilities, prices, estimate) is open; spending actions require a Bearer token issued in the dashboard (https://lk.vibemarketolog.ru/#agent). Token scopes: read, generate, write, autopilot, yandex. Per-token daily spend limit (default 500 RUB). Auth guide: /auth.md.'
contact:
name: Вайб-Маркетолог
url: https://vibemarketolog.ru
servers:
- url: https://lk.vibemarketolog.ru/api/agent
description: Production
security:
- AgentBearer: []
tags:
- name: Generate
description: Spend balance to create content
paths:
/generate:
post:
tags:
- Generate
summary: Create content (video/image/voice/music/text). Charges the RUB balance
operationId: generate
x-required-scope: generate
x-throttle:
group: agent_generate
scope: per-token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateRequest'
responses:
'200':
description: Completed synchronously
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationResult'
'202':
description: Accepted (async); poll status_url or await webhook
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationAccepted'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/InsufficientBalance'
'403':
description: Scope not granted or IP not allowed
'422':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
callbacks:
generationWebhook:
'{$request.body#/webhook_url}':
post:
summary: Signed delivery of the generation result
parameters:
- name: X-Vibe-Signature
in: header
schema:
type: string
description: hex HMAC-SHA256(rawBody, webhook_secret)
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationResult'
responses:
'200':
description: Acknowledged
/upload-media:
post:
tags:
- Generate
summary: Upload a media file for use as input
operationId: uploadMedia
x-required-scope: generate
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: Uploaded
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'422':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
components:
responses:
ValidationError:
description: Поля запроса не прошли проверку; разбор — в details (validation_failed)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: У ключа нет нужного права либо адрес запроса не в списке разрешённых (insufficient_scope / ip_not_allowed)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InsufficientBalance:
description: Не хватает рублей на балансе (insufficient_balance)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Превышена частота запросов или суточный лимит траты ключа (rate_limit_exceeded / daily_spend_limit_exceeded)
headers:
Retry-After:
schema:
type: integer
description: Через сколько секунд повторить
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Ключ не передан, недействителен, отозван или истёк (missing_token / invalid_token)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalError:
description: Внутренняя ошибка сервиса; повторите позже и сообщите request_id (internal_error)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
description: Единый ответ об ошибке публичного API. Схема одинакова для всех методов и всех кодов.
required:
- status
- error
- message
- request_id
additionalProperties: true
properties:
status:
type: string
const: error
description: Всегда "error".
error:
type: string
description: Стабильный машинный код ошибки.
examples:
- missing_token
- invalid_token
- insufficient_scope
- ip_not_allowed
- not_found
- method_not_allowed
- validation_failed
- invalid_url
- insufficient_balance
- daily_spend_limit_exceeded
- rate_limit_exceeded
- already_running
- generation_failed
- tool_failed
- ai_unavailable
- internal_error
message:
type: string
description: 'Человекочитаемое объяснение на русском: что не так и что сделать.'
details:
type: object
description: 'Разбор по полям для ошибок валидации: имя поля → список сообщений.'
additionalProperties:
type: array
items:
type: string
request_id:
type: string
format: uuid
description: Идентификатор вызова. Назовите его в обращении в поддержку — по нему находится запись в журнале.
GenerationResult:
type: object
properties:
id:
type: string
status:
type: string
type:
type: string
model:
type: string
cost_rub:
type: number
result:
type: object
display_url:
type:
- string
- 'null'
description: Permanent link to the stored result file (https://lk.vibemarketolog.ru/newuser/file/{id}); null until the file is saved locally. Show this to users — the provider result_url expires.
file_url:
type:
- string
- 'null'
description: Same permanent /newuser/file/{id} link as display_url; null until the file is saved locally.
GenerateRequest:
type: object
required:
- type
- model
properties:
type:
type: string
enum:
- video
- image
- voice
- music
- text
description: Content type (discriminator).
model:
type: string
description: Model id. Valid values come from GET /capabilities.
prompt:
type: string
params:
type: object
description: Per-type parameters; see /capabilities for per-model schema.
webhook_url:
type: string
format: uri
description: Optional; result is POSTed here with an X-Vibe-Signature header.
idempotency_key:
type: string
description: De-duplicates charges across retries.
strict:
type: boolean
description: Validate parameters before charging.
GenerationAccepted:
type: object
properties:
id:
type: string
status:
type: string
type:
type: string
model:
type: string
estimated_cost_rub:
type: number
status_url:
type: string
format: uri
securitySchemes:
AgentBearer:
type: http
scheme: bearer
bearerFormat: oc_<user_id>_<random>
description: Bearer token issued manually in the dashboard (https://lk.vibemarketolog.ru/#agent). No self-registration. Sent in the Authorization header only. Validated by SHA-256 hash, with is_active, expiry, scope and optional IP allow-list checks.