An OpenAI-compatible AI API, served from Iran
Building a product that needs AI? Call Eternal's API like OpenAI's — no sanctions, no foreign card, low latency inside Iran.
Create an API keyWorks with the OpenAI libraries
/v1/models and /v1/chat/completions follow the OpenAI format, with streaming and reasoning_effort. Change the base URL and key in your code.
Three steps
- Open API keys from the account menu.
- Create a key and store it safely (it's shown once).
- Use https://api.etai.ir/api/v1 as the base URL.
FAQ
Can I use the openai Python library?
Yes — set base_url to https://api.etai.ir/api/v1 and api_key to your Eternal key.
Does it support streaming?
Yes, stream: true returns OpenAI-style SSE events.
An OpenAI-compatible AI API, served from Iran
Create an API key