Make Your First Model Request
Choose a maintained path below, verify each result in the Console, and open the detailed task page when you need exact fields, commands, or troubleshooting.
Open Chat CompletionsThe model API is OpenAI-compatible where documented. Use the environment gateway, send your API key as a Bearer token, choose a model ID from Console, and start with the endpoint for its modality.
Docs 2.0 · API contract 2.0.9What You Can Do
- Identify the current environment gateway URL.
- Authenticate without embedding a key in source code.
- Choose a model ID that matches the endpoint modality.
- Send a minimal request and read its response.
- Use trace and rate-limit headers when troubleshooting.
- Find the matching TypeScript or Python next step.
Who This Is For
Application developers integrating model inference · Teams moving an OpenAI-compatible client to Smart Studio · Developers generating chat, images, or video without Console automation
Choose Your Path
Chat Completions
Text, reasoning, and multimodal chat requests.
- Set Base URL
- Export API key
- Choose model
- POST /v1/chat/completions
- Read response
Result: You receive an authenticated chat completion and can trace the request.
Open Chat APIImage Generation
Text-to-image or image-guided generation.
- Choose image model
- Build input
- POST /v1/images/generations
- Save task ID
- Poll result
Result: An asynchronous image task is created with a task ID.
Open Image APIVideo Generation
Text, image, keyframe, or reference-to-video generation.
- Choose video model
- Select input mode
- POST /v1/videos/generations
- Save task ID
- Poll result
Result: An asynchronous video task is created with a task ID.
Open Video APIBefore You Start
- An API key created in Tenant Console → API Keys.
- A callable model ID copied from Models or the matching Lab.
- Available credits or billing for the selected model.
Core Journey
Expected Result
You can send one authenticated request to the current gateway, identify its trace information, and continue to the full contract for the selected endpoint.
Recommended Next Step
Open Chat CompletionsCurrent Environment
- Gateway Base URL:
https://gateway.example.com/model-gateway - Authentication:
Authorization: Bearer $SMART_STUDIO_API_KEY - Model IDs: copy the callable identifier from Console → Models or the matching Lab.
export SMART_STUDIO_BASE_URL="https://your-environment-gateway"
export SMART_STUDIO_API_KEY="your-api-key"
curl "$SMART_STUDIO_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $SMART_STUDIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"your-model-id","messages":[{"role":"user","content":"Hello"}]}'
Use the Base URL shown above for SMART_STUDIO_BASE_URL. Keep the real API key outside shell history, source files, and logs.