1. Create an API key
Sign in to the console. Follow onboarding, or open api keys → new in your workspace. Copy the key when it is shown and check that the workspace has credits. Set it in the terminal where you will run the example:2. Send a request
Choose one tab.openai/gpt-4o-mini is a small text model used for this first call; you can replace it with another text model from the catalog.
- cURL
- Python
- TypeScript
choices[0].message.content.Example response
Example response
Text and token counts vary. This response is abbreviated:
3. Find your request
Open logs in the console. Select your request to see its status, tokens, latency, and cost. Make sure you are viewing the workspace that owns the API key.Read the latest request through the API
Read the latest request through the API
You can also read the latest request through the API:
If the request fails
Troubleshoot your first request
Troubleshoot your first request

