synthetic
    /Dev
    • Back to app
    Usage-based pricing
    • Usage & Billing
    API Documentation
    API
    • Overview
    • Getting Started
    • Models
    Agents
    • Octofriend by Synthetic
    • Claude Code
    • Crush
    • Opencode
    • GitHub Copilot
    • OpenClaw
    • Xcode Intelligence
    OpenAI Reference
    • /models
    • /chat/completions
    • /completions
    • /embeddings
    Anthropic Reference
    • /messages
    • /messages/count_tokens
    Synthetic Reference
    • /quotas
    • /search

    Example Request

    • Python
    • TypeScript
    • curl
    import openai
    
    client = openai.OpenAI(
      api_key="SYNTHETIC_API_KEY",
      base_url="https://staging-api.synthetic.new/openai/v1"
    )
    
    # List all available models
    models = client.models.list()
    print(models)

    Model Naming Convention

    All model IDs follow the pattern: hf:{owner}/{model-name}

    • hf: - Required prefix indicating a Hugging Face model
    • owner - The organization or user who published the model
    • model-name - The specific model name and version