---
title: "Generate AI Content"
method: POST
path: "/v2/jobs/generate-transcription-ai-content"
---

# Generate AI Content

`POST /v2/jobs/generate-transcription-ai-content`

Submit a transcription job that also generates AI content based on provided parts.

## Request body

- CreateTranscriptionWithAiContentRequestBody
  - `apiKey` string, uuid, required — API key identifier (used for API key authorization)
  - `mediaUrl` string, uri, required — URL of the media to transcribe
  - `title` string, required
  - `language` 'ar' | 'en', required — Language code for the media being transcribed
  - `aiParts` string[], required — AI content parts to generate (one key only)
  - `aiContentTitle` string, nullable
  - `aiContentLanguage` 'ar' | 'en' | 'both_ar_first' | 'both_en_first', nullable — Preferred AI content language
  - `aiContentDate` string, date-time, nullable — Date associated with the AI content
  - `aiContentText` string, nullable

## Response `200`

Successful response with job id

- object
  - `success` boolean
  - `message` string
  - `messageKey` string
  - `data` CreateTranscriptionWithAiContentResponse
    - `jobId` string, required

## Other responses

- `400` — Validation error response
- `500` — Internal server error response

---

[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)
