REST APIv1.2.0
API Reference
Integrate AICraft Studio directly into your workflow with our robust, low-latency API. Build custom clients while leveraging our backend infrastructure.
Authentication
All API requests must include an x-api-key header. You can generate keys in your workspace settings.
curl -H "x-api-key: YOUR_KEY" https://api.aicraft.studio/v1/user
Endpoints
POST
/chat/completions
Send a message to an AI model.
POST
/images/generations
Produce images from a text prompt.
GET
/assets
List all generated assets in your library.
DELETE
/assets/{id}
Permanently delete an asset.
Example Request
{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Create a logo for a SaaS"
}
],
"stream": true
}Global CDN
SOC2 Type II
<200ms Latency
OpenAPI 3.0