API Request Builder
Pick a provider and model, describe your request, and get ready-to-copy code in curl, Python, and JavaScript. Everything updates live as you type.
Notes: Claude code targets the Messages API (
POST https://api.anthropic.com/v1/messages) with the anthropic-version: 2023-06-01 header, and the official anthropic / @anthropic-ai/sdk packages. On Claude Opus 5, Claude Sonnet 5, and Claude Opus 4.8 the sampling parameters (temperature, top_p, top_k) are not accepted and thinking is adaptive, so the generator omits them there; use output_config: {"effort": "..."} to control reasoning depth. The OpenAI tab uses the standard Chat Completions shape - check the OpenAI docs for the latest model names and parameters. Set ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment before running; never hardcode keys.