Skip to main content
idapt
AccueilModèles IATarifs
Sign inStart free

curl with idapt

Raw HTTP against the OpenAI, Anthropic, and OpenRouter compatible surfaces.

Last reviewed 2026-07-17

Point it at idapt

bash
curl https://idapt.app/api/openai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $IDAPT_API_KEY" \
  -d '{"model": "openai/gpt-5.6-luna", "messages": [{"role": "user", "content": "Three facts about ravens."}]}'

Streaming

bash
curl https://idapt.app/api/anthropic/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $IDAPT_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model": "anthropic/claude-haiku-4.5", "max_tokens": 256, "stream": true, "messages": [{"role": "user", "content": "Stream a haiku."}]}'

The Anthropic dialect wants x-api-key and anthropic-version headers.

Going further

bash
curl https://idapt.app/api/openrouter/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $IDAPT_API_KEY" \
  -d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Three facts about ravens."}]}'

The OpenRouter dialect adds provider routing fields and suffixes on top of the OpenAI shape.

Pitfalls

Three dialects, one key

All three surfaces authenticate with the same idapt key; pick whichever wire shape your existing code already speaks.

References

  • API keys and scopes
  • OpenAI-compatible API reference
  • Rate limits and errors
  • Switch from OpenRouter

More quickstarts

OpenAI SDK (JS)Anthropic SDKn8n
  • Accueil
  • Tarifs
  • Modèles IA
  • Modèles d'image
  • Modèles de voix
  • Modèles vidéo
  • Classements
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Secrets
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • Code Execution
  • Computers
  • Computer Use
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • Blog
  • Cas d'usage
  • Comparisons
  • Best of
  • Learn
  • Free tools
  • Prompts
  • Templates
  • Changelog
  • Centre d'aide
  • FAQ
  • Confidentialité
  • Comparer tous les modèles
  • Support
  • Développeurs
  • Quickstarts
  • Référence API
  • Tarifs API
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]ConditionsPolitique de confidentialitéMentions légalesSignaler un contenu
X (Twitter)