cURL to OpenAI SDK

Paste an OpenAI cURL example from the docs, get equivalent code using the official OpenAI Python or Node SDK. Handles chat completions, embeddings, audio transcription. Extracts the model, messages, and parameters automatically.

How to use the cURL to OpenAI SDK

Paste any OpenAI cURL example. The tool detects the endpoint (chat completions, embeddings, audio) and generates the matching SDK call. Streaming option wraps the call in the iterator pattern. The API key is read from OPENAI_API_KEY environment variable in the generated code (don't hard-code keys).