Get your OpenAI API Key
Access GPT-4o, GPT-4.1, o1, and other OpenAI models.
Step-by-step
1
Create an OpenAI account
Go to platform.openai.com/signup and create an account (or log in if you already have one).
2
Navigate to API keys
Go to platform.openai.com/api-keys or click your profile icon → API keys.
3
Create a new secret key
Click Create new secret key. Give it a name like "AgentVoy". Copy the key immediately — you will not be able to see it again.
4
Add billing
Go to Billing and add a payment method. New accounts get $5 in free credits. GPT-4o costs ~$2.50 per million input tokens.
5
Add to your .env
OPENAI_API_KEY=sk-proj-...
Your key starts with sk-proj- (project key) or sk- (legacy).
Compatible frameworks
OpenAI Agents SDKCrewAILangGraphLlamaIndexAutoGen
Available models
| Model | Best for |
|---|---|
| gpt-4o | General purpose, fast |
| gpt-4o-mini | Cost-effective, lighter tasks |
| gpt-4.1 | Latest, most capable |
| o1 | Advanced reasoning |