Skip to main content

AI Studio API Reference

AI Studio provides OpenAI-compatible inference on a catalog of text and image models. These endpoints let you list models, run inference, generate images, manage conversations and system prompts, and build knowledge bases.

Base URL https://console.hyperstack.cloud/ai/api/v1 Differs from the core API base URL (infrahub-api.nexgencloud.com/v1).
Authentication

Pass your API key as the api_key request header (no prefix). The same key works for both this and the core Hyperstack API. See Authentication for key generation and rotation.

Quickstart

Create an API key and make your first request to the OpenAI-compatible API.

Resources​


Base Models

Browse available foundation models and their pricing.

2 endpoints

Inference

Send chat completions to any model in the catalog and review audit records of your requests.

2 endpoints

Image Generation

Generate and edit images from text or source images using vision models.

4 endpoints

Conversations

Create conversation threads and retrieve message history.

6 endpoints

Knowledge Bases

Index your own documents so models can search them and cite the passages used.

11 endpoints

Models

List the models available to your account.

2 endpoints

System Prompts

Save and manage reusable system prompt templates.

5 endpoints

Overview

Retrieve an organization-level summary of AI Studio resource usage and model activity.

1 endpoint

Billing

Usage history and cost breakdowns for data synthesis, fine-tuning, model evaluations, and serverless inference.

12 endpoints
On this page