aiendpoint.dev
ServicesOpenRouter

OpenRouter

community

Unified API for 200+ AI models from OpenAI, Anthropic, Google, Meta, and more with automatic fallback.

Visit site ↗

This is a community-generated spec

This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.

https://openrouter.aiapikeyaiconfidence: 83/1000 discoveries1 contributors
POSThttps://openrouter.ai/api/v1/chat/completions

Generate text via any model

Parameters

modelmodel ID e.g. anthropic/claude-sonnet-4 (stringrequired
messagesconversation array (arrayrequired
max_tokensmax tokens (integeroptional
temperature0-2 (numberoptional

Returns

choices[] with message.content, usage, model, id
GEThttps://openrouter.ai/api/v1/models

List available models

Returns

data[] with id, name, pricing.prompt, pricing.completion, context_length, top_provider, architecture
GEThttps://openrouter.ai/api/v1/auth/key

Get account credits

Returns

data with label, usage, limit, is_free_tier, rate_limit