Simple Example
Here’s a simple example of a text generation inference. To try this, POST it to the API endpointhttps://aiapi.scope3.com/v1/impact
or use our live API reference. You’ll need an API key which you can get when you sign up for Scope3 AI.
You can also use the Google Sheets Integration to play with the API, or the Python SDK.
Model Parameters
Models may not accept all of these inputs, but the API is aware of:- Prompt Tokens: Text input length measured in tokens
- Images: Dimensions in pixels (e.g., 1024x1024), number of diffusion steps
- Audio: Duration and sample rate
Base Model
A base model can be specified in three ways. To see the list of models, you can query the List Model API.1. By Model Family and Name
2. By Model ID
3. By Hugging Face Path
Fine-tuning
Not supported yetHardware
1. Managed Service Provider
2. Cloud Instance via ID
3. Cloud Instance via Cloud ID and Cloud Instance ID
Task Types
Language Models
- Text generation
- Chat
- Embeddings
- Classification
- Summarization
- Translation
Computer Vision
- Image classification
- Object detection
- Image generation
- Style transfer
- Upscaling
Audio/Speech
- Speech-to-text
- Text-to-speech
- Audio classification
Video Processing and Generation
- Text-to-video generation
- Video-to-video transformation
- Video upscaling
- Frame interpolation
- Video editing
API Response
The API returns impact metrics for each inference:Complete Example
Here’s a complete example showing multiple inferences:Error Handling
TODO: Add error handling Common error codes:401
: Unauthorized - Invalid or missing API key403
: Forbidden - API key doesn’t have access to requested resource406
: Not acceptable - Invalid request format415
: Unsupported media type429
: Too many requests - Rate limit exceeded