Description
codex-mini-latest is a fine-tuned version of o4-mini specifically for use in Codex CLI. For direct use in the API, we recommend starting with gpt-4.1.
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: OpenAI: Codex Mini (openai/codex-mini)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "openai/codex-mini",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the OpenAI: Codex Mini model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'Supported Modalities
- Text
- Images
API Pricing
- Input: 1.5$ / 1M tokens
- Output: 6$ / 1M tokens
Token Limits
- Max Output: 100,000 tokens
- Max Context: 200,000 tokens
Subscription Tiers
- free
- pro
- ultimate