Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/promptster-dev:promptster-dev-prompts-api"
All apis
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.
Get an API 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: Promptster Prompts API
description: 'API for testing and comparing prompts across multiple AI providers.
## Authentication
All API endpoints require authentication via API key in the Authorization header:
```
Authorization: Bearer pk_live_xxxxxxxx
```
## Rate Limits
- Free tier: 2,000 calls/month, 5 requests/minute
- Builder tier ($9/mo): 5,000 calls/month, 30 requests/minute
- Scale tier ($29/mo): 25,000 calls/month, 120 requests/minute
Rate limit and billing headers are included in all responses:
- `X-RateLimit-Remaining-Calls`: Included calls remaining this period
- `X-Credit-Balance`: Prepaid credit balance
- `X-Billing-Source`: How the request was billed (plan_included, credits, overage)
- `X-RateLimit-Tier`: Your subscription tier'
version: 1.0.0
contact:
name: Promptster Support
url: https://www.promptster.dev
license:
name: Proprietary
servers:
- url: https://www.promptster.dev/v1
description: Production
- url: http://localhost:5000/v1
description: Local development
security:
- BearerAuth: []
tags:
- name: Prompts
description: Test and compare AI prompts
paths:
/prompts/test:
post:
summary: Test a single prompt
description: Send a prompt to a single AI provider and get the response with metadata
operationId: testPrompt
tags:
- Prompts
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TestPromptRequest'
example:
provider: openai
model: gpt-5.5
prompt: Explain quantum computing in simple terms
system_prompt: You are a physics tutor. Answer in exactly two sentences.
max_tokens: 500
temperature: 0.7
parameters:
- $ref: '#/components/parameters/ProviderApiKey'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/TestPromptResponse'
'400':
$ref: '#/components/responses/TestPromptBadRequest'
'401':
$ref: '#/components/responses/AuthenticationError'
'429':
$ref: '#/components/responses/RateLimitError'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/ProviderUnavailable'
/prompts/compare:
post:
summary: Compare multiple providers
description: Send the same prompt to multiple AI providers and compare responses
operationId: comparePrompts
tags:
- Prompts
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ComparePromptsRequest'
example:
prompt: Write a haiku about programming
configurations:
- provider: openai
model: gpt-5.5
temperature: 0.7
- provider: anthropic
model: claude-sonnet-5
temperature: 0.7
max_tokens: 200
responses:
'200':
description: Successful response with results from all providers
content:
application/json:
schema:
$ref: '#/components/schemas/ComparePromptsResponse'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/AuthenticationError'
'429':
$ref: '#/components/responses/RateLimitError'
'500':
$ref: '#/components/responses/InternalError'
components:
schemas:
ToolDefinition:
type: object
required:
- name
- description
- parameters
properties:
name:
type: string
pattern: ^[a-zA-Z0-9_-]{1,64}$
description: 1-64 characters of letters, digits, underscores or hyphens.
description:
type: string
maxLength: 1024
parameters:
type: object
description: JSON Schema object describing the tool's arguments. Passed to the provider unchanged. At most 16,384 characters when serialised as JSON.
ToolChoice:
type: string
enum:
- auto
- required
- none
description: 'Requires `tools`. `auto` lets the model decide (the provider default), `required` forces a tool call, `none` forbids one. Mapped to Anthropic `{type: auto|any|none}` and Google `functionCallingConfig.mode AUTO|ANY|NONE`. `required` is rejected by some models (Anthropic Fable 5.1 / Opus 5.5 / Sonnet 5.5, DeepSeek thinking models); that comes back as `provider_tools_unsupported`.'
ComparePromptsRequest:
type: object
required:
- prompt
- configurations
properties:
prompt:
type: string
minLength: 1
maxLength: 50000
description: The prompt to send to all providers
configurations:
type: array
minItems: 2
maxItems: 5
items:
type: object
required:
- provider
- model
properties:
provider:
$ref: '#/components/schemas/Provider'
model:
type: string
temperature:
type: number
minimum: 0
maximum: 2
default: 0.7
max_tokens:
type: integer
minimum: 1
maximum: 4096
default: 2000
system_prompt:
type: string
maxLength: 50000
description: System / developer instructions applied to every configuration in the comparison.
tools:
allOf:
- $ref: '#/components/schemas/Tools'
description: Applied to every configuration, like system_prompt.
tool_choice:
$ref: '#/components/schemas/ToolChoice'
ResponseMetadata:
type: object
properties:
input_tokens:
type: integer
description: Tokens in the prompt
output_tokens:
type: integer
description: Tokens in the response
total_tokens:
type: integer
description: The provider's total for the call. Includes `reasoning_tokens` when present, so it can exceed `input_tokens + output_tokens`.
response_time_ms:
type: integer
description: Response time in milliseconds
tokens_per_second:
type: number
description: Output tokens per second
estimated_cost:
type: number
description: Estimated cost in USD
reasoning_tokens:
type: integer
description: 'Hidden reasoning (thinking) tokens the provider bills at the output rate but leaves out of `output_tokens`: Google `thoughtsTokenCount`, xAI `completion_tokens_details.reasoning_tokens`. Present only when the provider reports a non-zero count; already included in `estimated_cost`. OpenAI and Anthropic count reasoning inside `output_tokens`, so the field is absent for them.'
cached_input_tokens:
type: integer
description: Portion of `input_tokens` served from the provider's prompt cache and billed at the cached rate (xAI, Google, Perplexity). Present only when the provider reports a non-zero count. xAI prepends a ~1,150-token system prompt to every request and reports it here.
FinishReason:
type: string
description: 'Why generation stopped, one vocabulary across providers: `stop`, `tool_calls`, `length` (hit `max_tokens`), `content_filter`; any other provider-specific value is passed through lower-cased (for example Gemini''s `unexpected_tool_call` under `tool_choice: none`). Present whenever the provider reports one, with or without tools.'
TestPromptResponse:
type: object
properties:
id:
type: string
description: Unique test ID
provider:
$ref: '#/components/schemas/Provider'
model:
type: string
prompt:
type: string
response:
type: string
description: The AI's response text. Often empty when the model selected a tool.
tool_calls:
$ref: '#/components/schemas/ToolCalls'
finish_reason:
$ref: '#/components/schemas/FinishReason'
metadata:
$ref: '#/components/schemas/ResponseMetadata'
created_at:
type: string
format: date-time
ProviderPaymentRequiredError:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- message
properties:
type:
type: string
enum:
- provider_payment_required
message:
type: string
description: 'The provider''s own billing message, prefixed with the provider name: the user''s provider account is unfunded or over quota (Cerebras 402, OpenAI 429 `insufficient_quota`, Anthropic "credit balance is too low"). Promptster credits are not involved.'
provider:
type: string
ProviderToolsUnsupportedError:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- message
properties:
type:
type: string
enum:
- provider_tools_unsupported
message:
type: string
description: The provider's own rejection of the `tools` or `tool_choice` for this model, prefixed with the provider name. Tool support is per model, not per provider.
ToolCalls:
type: array
items:
$ref: '#/components/schemas/ToolCall'
description: Tools the model selected, in the provider's order. Omitted when the model selected none (including every request without `tools`). An array so parallel calls arrive as-is, but nothing guarantees more than one entry.
ProviderError:
type: object
properties:
type:
type: string
enum:
- provider_authentication_error
- provider_rate_limit
- provider_model_unavailable
- provider_tools_unsupported
- provider_payment_required
- provider_error
message:
type: string
ProviderModelUnavailableError:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- message
properties:
type:
type: string
enum:
- provider_model_unavailable
message:
type: string
description: The provider's own error text, prefixed with the provider name.
warnings:
type: array
description: Present when the model id is in Promptster's retirement list.
items:
type: object
properties:
code:
type: string
enum:
- model_retiring
provider:
type: string
model:
type: string
shutdown_date:
type: string
format: date
replacement:
type: string
nullable: true
ToolCall:
type: object
required:
- id
- name
- arguments
properties:
id:
type: string
description: The provider's call id (Gemini sends none; `call_<index>` is synthesised).
name:
type: string
arguments:
type: object
description: Parsed argument object. `{}` when the provider's argument string was not a JSON object.
arguments_raw:
type: string
description: Present only when the provider's argument string did not parse to a JSON object.
arguments_parse_error:
type: boolean
enum:
- true
description: Present (true) only alongside `arguments_raw`.
Tools:
type: array
minItems: 1
maxItems: 32
items:
$ref: '#/components/schemas/ToolDefinition'
description: 'Single-turn tool selection. The model is asked once with these tools and the response reports which tool it chose (`tool_calls`); nothing is executed and no result is fed back. Tool names must be unique. The same flat shape is sent to every provider (OpenAI-compatible `function` envelope, Anthropic `input_schema`, Google `functionDeclarations`, Perplexity Agent API `type: function`). Tool schemas are billed as input tokens on every call.'
Provider:
type: string
enum:
- openai
- anthropic
- google
- deepseek
- xai
- groq
- mistral
- perplexity
- together
- cerebras
- fireworks
description: AI provider identifier
Error:
type: object
properties:
error:
type: object
properties:
type:
type: string
message:
type: string
provider:
type: string
description: Present on provider-side errors (`provider_error`, `provider_payment_required`).
details:
type: array
items:
type: object
ComparePromptsResponse:
type: object
properties:
id:
type: string
description: Unique comparison ID
prompt:
type: string
results:
type: array
items:
type: object
properties:
provider:
$ref: '#/components/schemas/Provider'
model:
type: string
response:
type: string
tool_calls:
$ref: '#/components/schemas/ToolCalls'
finish_reason:
$ref: '#/components/schemas/FinishReason'
metadata:
$ref: '#/components/schemas/ResponseMetadata'
success:
type: boolean
error:
$ref: '#/components/schemas/ProviderError'
created_at:
type: string
format: date-time
TestPromptRequest:
type: object
required:
- provider
- model
- prompt
properties:
provider:
$ref: '#/components/schemas/Provider'
model:
type: string
minLength: 1
description: Model identifier (e.g., gpt-5.5, claude-sonnet-5)
prompt:
type: string
minLength: 1
maxLength: 50000
description: The prompt to send to the AI
max_tokens:
type: integer
minimum: 1
maximum: 4096
default: 2000
description: Maximum tokens in the response
temperature:
type: number
minimum: 0
maximum: 2
default: 0.7
description: Sampling temperature (0 = deterministic, 2 = creative)
system_prompt:
type: string
maxLength: 50000
description: 'System / developer instructions sent alongside the prompt. Mapped to each provider''s native field (Anthropic `system`, Google `systemInstruction`, `role: developer` for OpenAI reasoning models, `role: system` elsewhere). Counts toward input tokens.'
tools:
$ref: '#/components/schemas/Tools'
tool_choice:
$ref: '#/components/schemas/ToolChoice'
responses:
TestPromptBadRequest:
description: 'Either the request failed validation, the provider rejected the model id (unknown, retired, or served on dedicated endpoints only), the provider rejected the `tools` / `tool_choice` for this model, the provider refused the request for billing reasons (`provider_payment_required`: the user''s own provider account is unfunded or over quota), or the provider answered any other 4xx (`provider_error`, with the upstream status in the message). The provider forms carry the provider''s own message where it is safe to forward, plus a `warnings` array when the model is in Promptster''s retirement list.'
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Error'
- $ref: '#/components/schemas/ProviderModelUnavailableError'
- $ref: '#/components/schemas/ProviderToolsUnsupportedError'
- $ref: '#/components/schemas/ProviderPaymentRequiredError'
examples:
validation_error:
summary: Request failed validation
value:
error:
type: validation_error
message: Invalid request parameters
details:
- field: prompt
message: 'Too small: expected string to have >=1 characters'
provider_model_unavailable:
summary: Provider does not serve the model id
value:
error:
type: provider_model_unavailable
message: 'Together AI does not serve this model: Unable to access non-serverless model meta-llama/Llama-3.3-70B-Instruct-Turbo. Please visit https://api.together.ai/models/meta-llama/Llama-3.3-70B-Instruct-Turbo to create and start a new dedicated endpoint for the model.'
warnings:
- code: model_retiring
provider: together
model: meta-llama/Llama-3.3-70B-Instruct-Turbo
shutdown_date: '2026-10-24'
replacement: openai/gpt-oss-120b
provider_tools_unsupported:
summary: The model does not accept these tools or this tool_choice
value:
error:
type: provider_tools_unsupported
message: 'DeepSeek did not accept the tools for this model: Thinking mode does not support this tool_choice'
provider_payment_required:
summary: The user's provider account is unfunded or over quota
value:
error:
type: provider_payment_required
message: 'Cerebras refused the request for billing reasons: Payment required to access this resource. Visit your billing tab.'
provider: cerebras
provider_error:
summary: Any other 4xx from the provider
value:
error:
type: provider_error
message: OpenAI returned an error (HTTP 400). Please try again.
provider: openai
ValidationError:
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: validation_error
message: Invalid request parameters
details:
- field: prompt
message: 'Too small: expected string to have >=1 characters'
RateLimitError:
description: Rate limit exceeded
headers:
Retry-After:
description: Seconds until rate limit resets
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: rate_limit_exceeded
message: You have exceeded your monthly call quota of 2,000 calls.
retry_after: 3600
limit: 100
limit_type: daily
reset_at: '2024-01-01T00:00:00Z'
InternalError:
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: internal_error
message: An error occurred while processing your request
AuthenticationError:
description: Authentication error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: authentication_error
message: Invalid API key. Please check your key and try again.
ProviderUnavailable:
description: The provider answered 5xx or timed out (408). The status class is passed on instead of a Promptster 500; `provider` names the provider.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: provider_error
message: OpenAI returned an error (HTTP 503). Please try again.
provider: openai
parameters:
ProviderApiKey:
name: X-{Provider}-API-Key
in: header
description: 'Provider API key header. Replace {Provider} with the provider name in uppercase.
Examples: X-OPENAI-API-KEY, X-ANTHROPIC-API-KEY, X-XAI-API-KEY, X-GROQ-API-KEY, X-MISTRAL-API-KEY
'
required: true
schema:
type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key (starts with pk_live_ or pk_test_)