---
title: "Create AI Content"
method: POST
path: "/v1/jobs/ai-content"
---

# Create AI Content

`POST /v1/jobs/ai-content`

## Query parameters

- `jobId` string, required

## Request body

- AiContentPayload
  - `aiParts` string[]

## Response `200`

Successful response

- AiContentResponse
  - `success` boolean
  - `message` string
  - `data` object
    - `id` string
    - `title` string
    - `model` string
    - `type` 'AI_CONTENT'
    - `processingType` string
    - `webhookUrl` string
    - `totalCost` number
    - `usageTime` string
    - `mediaUrl` string, uri
    - `jobResponse` object
    - `status` 'PENDING' | 'COMPLETED' | 'FAILED'
    - `relevantJobId` string
    - `apiKeyId` string
    - `billingId` string
    - `userId` string
    - `systemModelKey` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Unauthorized

---

[API](https://skmtc.net/tryhamsa/apis/hamsa-api.md) · [All operations](https://skmtc.net/tryhamsa/apis/hamsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryhamsa/hamsa-api/versions/ecbeb5d8dc13/schema)
