API Reference

Ready to integrate? Here’s the core endpoints.

Auth

All calls require Authorization: Bearer <API_KEY>.

Generate Model

Auth

POST /users

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

Response

{
  "id": 1,
  "name": "John",
  "age": 30
}
POST /api/v1/forge/generate
Content-Type: application/json
{
  "prompt":"Tell me a sci-fi plot.",
  "config": {"temperature":0.8, "max_tokens":512}
}
{ "job_id":"xyz123","status":"pending" }

Webhook Events

Subscribe to job.completed, fine_tune.completed, etc., via /api/v1/forge/webhooks.

Last updated