SPB Git

Repository Public

codex-mini-latest.md 3.2 KB 95 lines markdown

1# codex-mini-latest23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45> Fast reasoning model optimized for the Codex CLI67Model ID: `codex-mini-latest`89codex-mini-latest is a fine-tuned version of o4-mini specifically10for use in Codex CLI. For direct use in the API, we recommend starting11with gpt-4.1.1213## Model details1415- Default snapshot: `codex-mini-latest`16- Input modalities: text, image17- Output modalities: text18- 200,000 context window19- 100,000 max output tokens20- Jun 01, 2024 knowledge cutoff21- Reasoning token support2223## Pricing2425Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the [pricing page](/api/docs/pricing).2627### Text tokens2829| Metric | Price | Unit |30| --- | ---: | --- |31| Input | $1.5 | 1M tokens |32| Cached input | $0.375 | 1M tokens |33| Output | $6 | 1M tokens |3435## Endpoints3637| Endpoint | Route | Support |38| --- | --- | --- |39| Live | `v1/live/sessions` | Not supported |40| Chat Completions | `v1/chat/completions` | Not supported |41| Responses | `v1/responses` | Supported |42| Realtime | `v1/realtime` | Not supported |43| Realtime translation | `v1/realtime/translations` | Not supported |44| Realtime transcription | `v1/realtime/transcription_sessions` | Not supported |45| Assistants | `v1/assistants` | Not supported |46| Batch | `v1/batch` | Not supported |47| Fine-tuning | `v1/fine-tuning` | Not supported |48| Embeddings | `v1/embeddings` | Not supported |49| Image generation | `v1/images/generations` | Not supported |50| Videos | `v1/videos` | Not supported |51| Image edit | `v1/images/edits` | Not supported |52| Speech generation | `v1/audio/speech` | Not supported |53| Transcription | `v1/audio/transcriptions` | Not supported |54| Translation | `v1/audio/translations` | Not supported |55| Moderation | `v1/moderations` | Not supported |56| Completions (legacy) | `v1/completions` | Not supported |5758## Supported features5960- streaming61- structured_outputs62- function_calling63- image_input64- prompt_caching65- evals66- stored_completions6768## Quick comparison6970| Model | Input | Cached input | Output |71| --- | ---: | ---: | ---: |72| codex-mini-latest | $1.5 | $0.375 | $6 |73| o4-mini | $1.1 | $0.275 | $4.4 |74| GPT-4.1 | $2 | $0.5 | $8 |7576## Snapshots7778Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for codex-mini-latest.7980- `codex-mini-latest`8182## Rate limits8384Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API.8586### default8788| Tier | RPM | TPM | Batch queue limit |89| --- | ---: | ---: | ---: |90| Tier 1 | 1,000 | 100,000 | 1,000,000 |91| Tier 2 | 2,000 | 200,000 | 2,000,000 |92| Tier 3 | 5,000 | 4,000,000 | 40,000,000 |93| Tier 4 | 10,000 | 10,000,000 | 1,000,000,000 |94| Tier 5 | 30,000 | 150,000,000 | 15,000,000,000 |95
Files main
Menu

Theme