Mensageiro Models API
What a key can call, and the public catalog with prices.
What a key can call, and the public catalog with prices.
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/mensageiro-ai:mensageiro-ai-models-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: Mensageiro Models API
version: '2026-10-19'
summary: One key and one base URL for Claude, GPT, Gemini and the open-weight models in the OpenAI, Anthropic and Gemini wire formats, plus image, video, speech and 3D models.
description: 'Send the request your SDK already sends, to `https://api.mensageiro.ai/v1` instead of the developer''s URL. The proxy changes only the credential, `stream_options.include_usage` on OpenAI-format streams that did not set it, a `top_k` of 0 or less (off) which it leaves out, and the model id when the request named one of your aliases. Authentication: `Authorization: Bearer sk-msg-live-...`, or the header your SDK sends (`x-api-key` for the Anthropic SDK, `x-goog-api-key` for the Gemini SDK). Exactly one key per request, never in the URL. Model ids are enumerated by GET /v1/catalog (chat, embedding, moderation, rerank and transcription models; each entry''s `type` and `endpoints` say which route takes it) and GET /v1/catalog/media (media), with prices, and by GET /v1/models for what a given key may call. They are not listed in this document. Errors: every error is a JSON object whose `error` carries a `code` and a `message`. OpenAI-format routes and every route outside the chat formats add `type` and `param` (the `Error` schema); the Anthropic format answers in Anthropic''s error shape with the code appended to the message, and the Gemini format in Google''s. Every error carries `x-uplink-request-id`. Fallbacks: `models: ["a", "b"]` in an OpenAI- or Anthropic-format body names up to 5 models tried in order after `model` (or alone, its first entry being the model). The next model is tried only once every route of the one before has failed before a byte reached you, so a stream falls back only before its first byte. The answer''s `model` and `x-uplink-model` name the model that answered, which is the one billed, at its own price. Every entry obeys the key''s allowlist. A key''s `fallback_models` is used when a request names no `models`. Presets: `model: "@preset/"` (also `@`, `@preset/`, or `preset: "@preset/"` beside a model) runs one of your organization''s presets, managed at /v1/presets: its model, fallbacks, default params, system prompt (prepended to yours, or replacing it) and tools. Your request''s own fields win; your tools replace the preset''s tools of the same name and the rest are appended. Every response carries `x-uplink-request-id`; quote it when you write in. Chat responses add `x-uplink-model` and, when they apply, the headers under `components.headers`. Paying per request without a key (x402): POST /v1/chat/completions, /v1/messages, /v1/responses, /v1/embeddings or /v1/search with no credential header and `X-PAYMENT: new` answers 402 with an x402 PaymentRequired object (protocol version 2) as the body and base64 in the PAYMENT-REQUIRED header. `accepts[0]` is scheme `checkout`: `payTo` is a one-time crypto checkout link (USDT, USDC, BTC, ETH, SOL and 13 more), `amount` the dollars to pay (the hold a key would be held for this request, rounded up to whole dollars, at least $1; the hold itself is `extra.request_usd`: the input at 4 bytes a token plus `max_tokens`, 16,384 when the request sets none, at the model''s catalog price, or one search''s fee on /v1/search), `extra.payment_id` the id of the payment. Pay there, then send the same request again with `X-PAYMENT: ` (or PAYMENT-SIGNATURE carrying a base64 x402 PaymentPayload whose `payload.payment_id` is the id). A request with no credential and no X-PAYMENT or PAYMENT-SIGNATURE header is not paying per request: it answers 401 invalid_api_key. Until the payment confirms the answer is 402 x402_payment_pending with the same quote; once it has, the request runs with the payment id as its end user and its own rate limit, and the answer adds PAYMENT-RESPONSE (base64 `{ success, transaction, network, payer }`) beside x-uplink-charge and the signed receipt. Every request sent with the id spends the payment down at the catalog price, and what the last one leaves stays with the service; a request the remainder cannot hold is a 402 x402_payment_spent with a fresh checkout. `stream` must be false. The model must be one id from GET /v1/catalog (no aliases, presets or `auto`).'
contact:
url: https://mensageiro.ai/contact
email: contato@mensageiro.ai
servers:
- url: https://api.mensageiro.ai
description: Production
security:
- bearer: []
- apiKey: []
- googleApiKey: []
tags:
- name: Models
description: What a key can call, and the public catalog with prices.
paths:
/v1/models:
get:
operationId: listModels
summary: Models this key can call
description: 'Every servable model the key''s allowlist admits, then the organization''s aliases, each naming its model in `uplink.alias_of`. The shape follows the credential header: OpenAI''s list for a Bearer token, Anthropic''s for `x-api-key`, Google''s for `x-goog-api-key`.'
tags:
- Models
responses:
'200':
description: The model list.
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ModelListOpenAI'
- $ref: '#/components/schemas/ModelListAnthropic'
- $ref: '#/components/schemas/ModelListGemini'
'401':
description: invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1beta/models:
get:
operationId: listModelsGemini
summary: Models this key can call, Gemini format
description: The same list as GET /v1/models, always in Google's shape.
tags:
- Models
responses:
'200':
description: The model list.
content:
application/json:
schema:
$ref: '#/components/schemas/ModelListGemini'
'401':
description: invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/catalog:
get:
operationId: getCatalog
summary: Public catalog with prices
description: 'Every servable chat model with the price you pay and the developer''s list price, plus `server_tools`, `file_parsing`, `auto_router` and `x402` (paying per request without a key: null where it is off). No key. Any origin. Cached 5 minutes. This is where model ids are enumerated.'
tags:
- Models
security: []
responses:
'200':
description: The catalog.
content:
application/json:
schema:
$ref: '#/components/schemas/Catalog'
/v1/catalog/media:
get:
operationId: getMediaCatalog
summary: Public media catalog
description: 'Every image, video, speech and 3D model: its settings, which routes take it, and the price per unit. No key. Any origin. Cached 5 minutes.'
tags:
- Models
security: []
responses:
'200':
description: The media catalog.
content:
application/json:
schema:
$ref: '#/components/schemas/MediaCatalog'
components:
schemas:
MediaParam:
type: object
description: One setting a media model takes, as `input.<name>`.
required:
- type
properties:
type:
type: string
enum:
- string
- number
- integer
- boolean
- url
- urls
- strings
- object
- objects
required:
const: true
values:
type: array
description: The only values accepted, when the setting is a choice.
items:
type:
- string
- number
default:
type:
- string
- number
- boolean
description: What runs when the setting is left out.
min:
type: number
max:
type: number
max_items:
type: integer
description: 'For urls, strings and objects: the most items allowed.'
TokenPrices:
type: object
description: Dollars per million tokens.
required:
- unit
- input
- cache_read
- output
properties:
unit:
const: usd_per_million_tokens
input:
type: number
cache_read:
type:
- number
- 'null'
description: Null when the model has no cached-input rate.
output:
type: number
MediaModel:
type: object
required:
- id
- object
- display_name
- developer
- kind
- tags
- endpoints
- unit
- params
- pricing
properties:
id:
type: string
description: The id to send as `model`.
object:
const: media_model
display_name:
type: string
developer:
type: string
kind:
type: string
enum:
- image
- video
- audio
- 3d
tags:
$ref: '#/components/schemas/ModelTags'
endpoints:
type: array
description: The routes that take this model.
items:
type: string
enum:
- /v1/images/generations
- /v1/generations
unit:
type: string
enum:
- image
- second
- minute
- generation
- 1k_characters
- 1k_bytes
description: What one unit of the price is.
settles_on_completion:
const: true
description: The output's length follows an input (a reference video, a driving audio track), so it is known only after the run. The longest output the settings allow is charged when the model accepts the task, and on success the charge comes down to the seconds the model made, at the same price per unit; the rest is given back to the balance.
params:
type: object
additionalProperties:
$ref: '#/components/schemas/MediaParam'
pricing:
type: array
description: Price tiers, first match wins. `when` names the settings that select the tier.
items:
type: object
required:
- when
- price_usd
- list_usd
properties:
when:
type: object
additionalProperties: true
addon:
const: true
description: Added on top of the matching base tier.
price_usd:
type: string
description: Dollars per unit, to four decimals, as a string.
list_usd:
type:
- string
- 'null'
description: The developer's own price per unit, when the developer publishes one.
ModelTags:
type: array
description: 'What kind of build the model is; empty for a stock model. uncensored: an uncensored, abliterated or roleplay build (or a media model with its host''s safety checker off); abliterated: refusals removed at the weight level; roleplay: made for character chat and story writing; security: set up for security work; own-brand: sold under Mensageiro''s own name.'
items:
type: string
enum:
- uncensored
- abliterated
- roleplay
- security
- own-brand
UplinkModelNote:
type: object
description: 'What Mensageiro adds to each model entry. Hosts are never named: Mensageiro is the provider of record.'
required:
- developer
properties:
developer:
type: string
description: The model's developer, for example Anthropic.
alias_of:
type: string
description: 'On an alias entry: the model id the alias runs on.'
ServerTool:
type: object
required:
- name
- type
- accepts
- unit
- price_usd
- available
properties:
name:
type: string
enum:
- web_search
- web_fetch
- code_execution
- mcp
type:
type: string
description: Our own tool type, e.g. `uplink:web_search`.
accepts:
type: array
items:
type: string
description: The standard tool types and fields that map to it.
unit:
type: string
enum:
- search
- fetch
- container_hour
- call
price_usd:
type: string
description: USD per unit, six decimals.
minimum_billed_seconds:
type: integer
description: 'code_execution: each call is billed at least this long.'
languages:
type: array
items:
type: string
enum:
- bash
- javascript
- python
description: 'code_execution: languages the sandbox runs (`language` in the tool call). python is 3.13 with numpy and requests.'
available:
type: boolean
description: False while the tool cannot run; a call then answers the model with a tool error.
AutoTiers:
type: object
description: Model ids per tier, in the order the router tries them.
properties:
fast:
type: array
items:
type: string
balanced:
type: array
items:
type: string
frontier:
type: array
items:
type: string
MediaCatalog:
type: object
required:
- object
- data
properties:
object:
const: list
data:
type: array
items:
$ref: '#/components/schemas/MediaModel'
ModelListOpenAI:
type: object
description: GET /v1/models with a Bearer token.
required:
- object
- data
properties:
object:
const: list
data:
type: array
items:
type: object
required:
- id
- object
- owned_by
- uplink
properties:
id:
type: string
description: The model id, or the alias.
object:
const: model
owned_by:
type: string
description: The developer, or "alias" on an alias entry.
uplink:
$ref: '#/components/schemas/UplinkModelNote'
ModelListAnthropic:
type: object
description: GET /v1/models with x-api-key.
required:
- data
- has_more
- first_id
- last_id
properties:
data:
type: array
items:
type: object
required:
- type
- id
- display_name
- uplink
properties:
type:
const: model
id:
type: string
display_name:
type: string
uplink:
$ref: '#/components/schemas/UplinkModelNote'
has_more:
const: false
first_id:
type:
- string
- 'null'
last_id:
type:
- string
- 'null'
Catalog:
type: object
required:
- object
- generated_at
- data
- coop_tiers
- auto_router
- x402
properties:
object:
const: list
generated_at:
type: string
format: date-time
data:
type: array
items:
$ref: '#/components/schemas/CatalogModel'
x402:
type:
- object
- 'null'
description: 'Paying per request without a key (the x402 note above): the scheme (`checkout`), the network (`hidden`), the asset (`USD`) and the smallest payment in dollars. Null where it is off.'
required:
- scheme
- network
- asset
- min_payment_usd
properties:
scheme:
type: string
network:
type: string
asset:
type: string
min_payment_usd:
type: number
plans:
type: array
description: 'Monthly usage plans: one payment of `month_usd` puts `usage_usd` of usage in the balance for one month, on every model. Empty where none are sold.'
items:
type: object
required:
- id
- name
- month_usd
- usage_usd
properties:
id:
type: string
name:
type: string
month_usd:
type: number
usage_usd:
type: number
coop_tiers:
type: array
description: Once all customers together pass `min_tokens` on a model in a UTC month, its price drops by `discount_pct`.
items:
type: object
required:
- min_tokens
- discount_pct
properties:
min_tokens:
type: integer
discount_pct:
type: number
file_parsing:
type: object
description: 'Documents any model can read: sent to a model whose `file_input` is `parsed`, a document is converted to text first. Larger files are refused; longer output is cut with a note.'
required:
- available
- formats
- max_file_mb
- max_pages
- max_output_chars
- usd_per_page
properties:
available:
type: boolean
formats:
type: array
items:
type: string
description: File extensions read.
max_file_mb:
type: number
max_pages:
type: integer
max_output_chars:
type: integer
usd_per_page:
type: number
description: 0 while free.
auto_router:
type: object
description: 'Send `model: "auto"` (or one of `aliases`) and the router picks from these lists for each request; see the `auto` request field. Each model bills at its own price in `data`. `profiles` are the lists `auto/<profile>` picks from: only models carrying that tag.'
required:
- id
- aliases
- tiers
- profiles
properties:
id:
const: auto
aliases:
type: array
items:
type: string
tiers:
$ref: '#/components/schemas/AutoTiers'
profiles:
type: object
description: 'Keyed by profile (uncensored, abliterated, security, roleplay): the id to send and its tier lists.'
additionalProperties:
type: object
required:
- id
- tag
- tiers
properties:
id:
type: string
description: '`auto/<profile>`'
tag:
type: string
description: The catalog tag every pick carries.
tiers:
$ref: '#/components/schemas/AutoTiers'
server_tools:
type: array
description: The server-side tools a chat, Messages or Responses request can declare, their price and whether each can run now.
items:
$ref: '#/components/schemas/ServerTool'
Error:
type: object
description: The error envelope on OpenAI-format routes and on every route outside the chat formats.
required:
- error
properties:
error:
type: object
required:
- message
- type
- code
properties:
message:
type: string
description: What went wrong, in plain words. Never names a host.
type:
type: string
description: 'OpenAI''s error class for the status: invalid_request_error, authentication_error, insufficient_quota, permission_error, not_found_error, rate_limit_error or api_error.'
param:
type:
- string
- 'null'
description: Always null.
code:
type: string
description: 'A stable code, the ones named on each response: invalid_request, invalid_api_key, insufficient_balance, model_not_found, rate_limited, upstream_error and so on.'
ModelListGemini:
type: object
description: GET /v1beta/models, or GET /v1/models with x-goog-api-key.
required:
- models
properties:
models:
type: array
items:
type: object
required:
- name
- displayName
- uplink
properties:
name:
type: string
description: '`models/` then the model id or alias.'
displayName:
type: string
uplink:
$ref: '#/components/schemas/UplinkModelNote'
CatalogModel:
type: object
description: 'One model of the token-priced catalog: chat, embedding, moderation, rerank or transcription (`type`). Prices are what you pay; the base cost is never here.'
required:
- id
- display_name
- developer
- mode
- wire_formats
- type
- endpoints
- pricing
- list_pricing
- coop_discount_pct
- context_window
- max_output_tokens
- input_modalities
- release_date
- tags
properties:
id:
type: string
description: The id to send as `model`.
display_name:
type: string
description: The marketing name, for example Claude Fable 5.1.
developer:
type: string
tags:
$ref: '#/components/schemas/ModelTags'
mode:
type: string
enum:
- managed
- byok
description: 'byok: served on your own provider key, stored in the console; managed: served on Mensageiro''s own routes.'
wire_formats:
type: array
items:
type: string
enum:
- openai
- anthropic
- gemini
description: Which request formats the model takes. The price is the same in each.
type:
type: string
enum:
- chat
- embedding
- moderation
- rerank
- transcription
description: What the model does, and so which route takes it.
endpoints:
type: array
items:
type: string
description: The routes that take the model.
pricing:
oneOf:
- $ref: '#/components/schemas/TokenPrices'
- type: object
required:
- unit
- request_fee
properties:
unit:
const: usd_per_request
request_fee:
type: number
description: A flat fee per request, on byok routes.
- type: object
required:
- unit
- audio_minute
properties:
unit:
const: usd_per_audio_minute
audio_minute:
type: number
description: Dollars per minute of audio, billed by the second (transcription models).
list_pricing:
oneOf:
- $ref: '#/components/schemas/TokenPrices'
- type: 'null'
description: The developer's published price, when one is on record.
coop_discount_pct:
type: number
description: Percent off this month from all customers' combined volume on the model; already in `pricing`. 0 when none.
context_window:
type:
- integer
- 'null'
description: The context window in tokens, as the developer publishes it, or the longest prompt this model takes here when that is less. Null when no developer page states one.
max_output_tokens:
type:
- integer
- 'null'
description: The most output tokens one request returns, as the developer publishes it. Null when no developer page states one.
input_modalities:
oneOf:
- type: array
items:
type: string
enum:
- text
- image
- audio
- video
- type: 'null'
description: What the model takes as input, as the developer publishes it. Null when no developer page states it.
file_input:
type: string
enum:
- native
- parsed
description: 'How a document part (a chat `file` part, a Messages `document` block, a Responses `input_file`) reaches the model: `native` as sent, `parsed` converted to text first (see `file_parsing`).'
release_date:
type:
- string
- 'null'
description: 'When the developer released the model: YYYY-MM-DD, or YYYY-MM when only the month is published. Null when no developer page states it.'
supported_parameters:
type: array
items:
type: string
enum:
- tools
- tool_choice
- response_format
- structured_outputs
- reasoning
- stop
- seed
- temperature
- top_p
- max_tokens
- logprobs
description: 'Request parameters verified for this model: every route that may serve it publishes that it takes them. Absent when that is not known for every route; a parameter missing from the list is unverified, not refused. Other parameters still pass through to the model as sent.'
performance:
type: object
description: 'Real traffic on the model over the last day, every host merged. The counts cover from the top of the hour 24 hours back (`since`) to the last rollup (`computed_at`), so 24 to 25 hours. Served: the answer completed, or the client left while it was being sent. Failed: the service refused the request or broke off. A request refused as invalid (400, 413, 422) is counted as neither. Absent when the model had fewer than 50 requests in the window.'
required:
- window_hours
- since
- success_rate_pct
- requests
properties:
window_hours:
const: 24
description: The nominal window, in hours.
since:
type: integer
description: 'Where the counts start, Unix milliseconds: the top of the hour 24 hours before the rollup.'
success_rate_pct:
type: number
description: Served as a percent of served plus failed, one decimal.
requests:
type: integer
description: Served plus failed in the window.
computed_at:
type: integer
description: When the counts were taken, Unix milliseconds. The rollup runs every 10 minutes; absent when the figures were counted directly instead, in which case `since` is exactly 24 hours back.
securitySchemes:
bearer:
type: http
scheme: bearer
description: '`Authorization: Bearer sk-msg-live-...`. The OpenAI SDK sends this.'
apiKey:
type: apiKey
in: header
name: x-api-key
description: The same key in `x-api-key`, as the Anthropic SDK sends it. On GET /v1/models it selects Anthropic's list shape.
googleApiKey:
type: apiKey
in: header
name: x-goog-api-key
description: The same key in `x-goog-api-key`, as the Gemini SDK sends it. On GET /v1/models it selects Google's list shape.
adminKey:
type: http
scheme: bearer
description: 'An admin key, created in the console: `Authorization: Bearer sk-msg-live-...`. It manages keys (/v1/keys) and log exports (/v1/exports), reads sessions and the usage CSV, and cannot call models.'