openai

OpenAI: Codex Mini

models/Codex Mini

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.
Currency$USD
Input$1.50
Output$6.00
Context window200K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/codex-mini-latest
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/codex-mini-latest",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])