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