Full API Documentation¶
For complete, interactive API documentation, use the auto-generated API docs provided by the SaaS API.
Interactive API Documentation¶
ReDoc (Recommended)¶
Beautiful, responsive API documentation with examples
Open ReDoc Documentation (Production)
Open ReDoc Documentation (Local)
ReDoc provides: - ✅ Clean, professional interface - ✅ Comprehensive endpoint documentation - ✅ Request/response schemas - ✅ Example payloads - ✅ Model definitions - ✅ Authentication details - ✅ Mobile-friendly
URL: http://localhost:8003/redoc
Swagger UI¶
Interactive API explorer with "Try it out" functionality
Swagger UI provides: - ✅ Try API calls directly in the browser - ✅ Interactive request builder - ✅ Real-time response preview - ✅ Schema validation - ✅ Authentication testing - ✅ Download OpenAPI spec
URL: http://localhost:8003/docs
What's Available¶
Both interfaces provide complete documentation for:
Organizations API¶
- Create, read, update, delete organizations
- List organization teams
- Get organization usage statistics
Teams API¶
- Create, read, update, delete teams
- Manage model access groups
- Suspend/resume teams
- View team credits
Model Access Groups API¶
- Create and manage access groups
- Assign model aliases
- Control team access
Model Aliases API¶
- Create model aliases
- Configure pricing (input/output tokens)
- Provider configuration
Jobs API¶
- Create jobs
- Single-call job endpoints (streaming and non-streaming)
POST /api/jobs/create-and-call- Non-streaming single-callPOST /api/jobs/create-and-call-stream- Streaming single-call (SSE)- Make LLM calls within jobs
- Complete jobs
- Get job details and costs
Credits API¶
- Check credit balance
- Add credits
- View credit transactions
- Credit availability check
Health & Status¶
- Health check endpoint
- System status
Quick Access¶
-
ReDoc
Beautiful, responsive documentation
-
Swagger UI
Interactive API testing interface
-
OpenAPI Spec
Download OpenAPI 3.0 specification
Using the Interactive Docs¶
ReDoc Interface¶
- Browse endpoints - Navigate through the API structure
- View schemas - See request/response models
- Copy examples - Use example code in your app
- Search - Find specific endpoints quickly
Swagger UI Interface¶
- Select an endpoint - Click on any API endpoint
- Click "Try it out" - Enable interactive mode
- Fill parameters - Add your virtual key and request data
- Execute - Send the request and see live results
Authentication in Swagger UI
To test authenticated endpoints in Swagger UI:
- Click the "Authorize" button at the top
- Enter your virtual key:
Bearer sk-your-virtual-key - Click "Authorize"
- Now all requests will include authentication
OpenAPI Specification¶
Download the OpenAPI 3.0 specification to: - Generate client libraries - Import into API testing tools (Postman, Insomnia) - Build custom tooling - Integrate with CI/CD
Production URLs¶
When deploying to production, the API documentation will be available at:
| Environment | ReDoc | Swagger UI | OpenAPI Spec |
|---|---|---|---|
| Production | https://llm-saas.usegittie.com/redoc | https://llm-saas.usegittie.com/docs | https://llm-saas.usegittie.com/openapi.json |
| Local | http://localhost:8003/redoc | http://localhost:8003/docs | http://localhost:8003/openapi.json |
Additional API Resources¶
Beyond the interactive documentation, explore these resources:
Detailed Guides¶
- API Overview - Introduction to the API structure
- Jobs API - Job management endpoints
- LLM Calls API - Making LLM calls
- Teams API - Team management
- Organizations API - Organization management
Integration Guides¶
- Integration Overview - How to integrate
- Authentication - Virtual key auth
- Job Workflow - Job-based pattern
- Streaming - SSE streaming guide
Examples¶
- Basic Usage - Simple examples
- Streaming Examples - Real-time streaming
- Full Chain - Complete workflow
Getting Help¶
If you have questions about the API:
- Check the interactive docs - Most questions are answered there
- Review the integration guides - Detailed explanations and examples
- Try the examples - Working code you can run locally
Screenshots¶
ReDoc Interface¶

Clean, professional API documentation with ReDoc
Swagger UI Interface¶

Interactive API testing with Swagger UI
Ready to Explore
Open the interactive documentation and start exploring the API:
- ReDoc - Beautiful documentation
- Swagger UI - Interactive testing