---
title: AI
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# AI

##### [Run a Workers AI model](https://developers.cloudflare.com/api/typescript/resources/ai/methods/run)

client.ai.run(stringmodelName, AIRunParamsparams, RequestOptionsoptions?): [AIRunResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/ai/run/{model\_name}

##### ModelsExpand Collapse

<details>

<summary>

AIRunResponse = Array&lt;TextClassification&gt;| Uploadable| Audio {audio } | 12 more

An array of classification results for the input text

</summary>

One of the following:

<details>

<summary>

Array&lt;TextClassification&gt;

</summary>

label?: string

The classification label assigned to the text (e.g., ‘POSITIVE’ or ‘NEGATIVE’)

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(items)%20%3E%20(property)%20label">Link to this property</a>

score?: number

Confidence score indicating the likelihood that the text belongs to the specified label

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

Uploadable

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

Audio {audio }

</summary>

audio?: string

The generated audio in MP3 format, base64-encoded

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20audio">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%202">Link to this property</a>

Uploadable

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

TextEmbeddings {data, shape }

</summary>

data?: Array&lt;Array&lt;number&gt;&gt;

Embeddings of the requested text values

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20data">Link to this property</a>

shape?: Array&lt;number&gt;

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20shape">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

AutomaticSpeechRecognition {text, vtt, word\_count, words }

</summary>

text: string

The transcription

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20text">Link to this property</a>

vtt?: string

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20vtt">Link to this property</a>

word\_count?: number

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20word_count">Link to this property</a>

<details>

<summary>

words?: Array&lt;Word&gt;

</summary>

end?: number

The ending second when the word completes

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20words%20%3E%20(items)%20%3E%20(property)%20end">Link to this property</a>

start?: number

The second this word begins in the recording

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20words%20%3E%20(items)%20%3E%20(property)%20start">Link to this property</a>

word?: string

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20words%20%3E%20(items)%20%3E%20(property)%20word">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20words">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

Array&lt;ImageClassification&gt;

</summary>

label?: string

The predicted category or class for the input image based on analysis

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(items)%20%3E%20(property)%20label">Link to this property</a>

score?: number

A confidence value, between 0 and 1, indicating how certain the model is about the predicted label

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

Array&lt;ObjectDetection&gt;

</summary>

<details>

<summary>

box?: Box {xmax, xmin, ymax, ymin }

Coordinates defining the bounding box around the detected object

</summary>

xmax?: number

The x-coordinate of the bottom-right corner of the bounding box

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20box%20%3E%20(property)%20xmax">Link to this property</a>

xmin?: number

The x-coordinate of the top-left corner of the bounding box

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20box%20%3E%20(property)%20xmin">Link to this property</a>

ymax?: number

The y-coordinate of the bottom-right corner of the bounding box

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20box%20%3E%20(property)%20ymax">Link to this property</a>

ymin?: number

The y-coordinate of the top-left corner of the bounding box

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20box%20%3E%20(property)%20ymin">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20box">Link to this property</a>

label?: string

The class label or name of the detected object

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20label">Link to this property</a>

score?: number

Confidence score indicating the likelihood that the detection is correct

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

UnionMember8 {response, tool\_calls, usage }

</summary>

response: string

The generated text response from the model

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20response">Link to this property</a>

<details>

<summary>

tool\_calls?: Array&lt;ToolCall&gt;

An array of tool calls requests made during the response generation

</summary>

arguments?: unknown

The arguments passed to be passed to the tool call request

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20tool_calls%20%3E%20(items)%20%3E%20(property)%20arguments">Link to this property</a>

name?: string

The name of the tool to be called

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20tool_calls%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20tool_calls">Link to this property</a>

<details>

<summary>

usage?: Usage {completion\_tokens, prompt\_tokens, total\_tokens }

Usage statistics for the inference request

</summary>

completion\_tokens?: number

Total number of tokens in output

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20usage%20%3E%20(property)%20completion_tokens">Link to this property</a>

prompt\_tokens?: number

Total number of tokens in input

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20usage%20%3E%20(property)%20prompt_tokens">Link to this property</a>

total\_tokens?: number

Total number of input and output tokens

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20usage%20%3E%20(property)%20total_tokens">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20usage">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%208">Link to this property</a>

Uploadable

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

Translation {translated\_text }

</summary>

translated\_text?: string

The translated text in the target language

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(property)%20translated_text">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2010">Link to this property</a>

<details>

<summary>

Summarization {summary }

</summary>

summary?: string

The summarized version of the input text

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2011%20%3E%20(property)%20summary">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2011">Link to this property</a>

<details>

<summary>

ImageToText {description }

</summary>

description?: string

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2012%20%3E%20(property)%20description">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2012">Link to this property</a>

<details>

<summary>

ImageTextToText {description }

</summary>

description?: string

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2013%20%3E%20(property)%20description">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2013">Link to this property</a>

<details>

<summary>

MultimodalEmbeddings {data, shape }

</summary>

data?: Array&lt;Array&lt;number&gt;&gt;

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2014%20%3E%20(property)%20data">Link to this property</a>

shape?: Array&lt;number&gt;

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2014%20%3E%20(property)%20shape">Link to this property</a>

</details>

<a href="#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)%20%3E%20(variant)%2014">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai%20%3E%20(model)%20ai_run_response%20%3E%20(schema)>)

#### AIFinetunes

##### [List Finetunes](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/finetunes/methods/list)

client.ai.finetunes.list(FinetuneListParams {account\_id } params, RequestOptionsoptions?): [FinetuneListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)>) {id, created\_at, model, 3 more }

GET/accounts/{account\_id}/ai/finetunes

##### [Create a new Finetune](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/finetunes/methods/create)

client.ai.finetunes.create(FinetuneCreateParams {account\_id, model, name, 2 more } params, RequestOptionsoptions?): [FinetuneCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)>) {id, created\_at, model, 4 more }

POST/accounts/{account\_id}/ai/finetunes

##### ModelsExpand Collapse

<details>

<summary>

FinetuneListResponse {id, created\_at, model, 3 more }

</summary>

id: string

formatuuid

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

model: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20model">Link to this property</a>

modified\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

description?: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)>)

<details>

<summary>

FinetuneCreateResponse {id, created\_at, model, 4 more }

</summary>

id: string

formatuuid

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

model: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20model">Link to this property</a>

modified\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

public: boolean

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20public">Link to this property</a>

description?: string

<a href="#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)>)

#### AIFinetunesAssets

##### [Upload a Finetune Asset](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/finetunes/subresources/assets/methods/create)

client.ai.finetunes.assets.create(stringfinetuneID, AssetCreateParams {account\_id, file, file\_name } params, RequestOptionsoptions?): [AssetCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.finetunes.assets%20%3E%20(model)%20asset_create_response%20%3E%20(schema)>) {success }

POST/accounts/{account\_id}/ai/finetunes/{finetune\_id}/finetune-assets

##### ModelsExpand Collapse

<details>

<summary>

AssetCreateResponse {success }

</summary>

success: boolean

<a href="#(resource)%20ai.finetunes.assets%20%3E%20(model)%20asset_create_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.finetunes.assets%20%3E%20(model)%20asset_create_response%20%3E%20(schema)>)

#### AIFinetunesPublic

##### [List Public Finetunes](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/finetunes/subresources/public/methods/list)

client.ai.finetunes.public.list(PublicListParams {account\_id, limit, offset, orderBy } params, RequestOptionsoptions?): SinglePage< [PublicListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)>) {id, created\_at, model, 4 more } >

GET/accounts/{account\_id}/ai/finetunes/public

##### ModelsExpand Collapse

<details>

<summary>

PublicListResponse {id, created\_at, model, 4 more }

</summary>

id: string

formatuuid

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

model: string

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20model">Link to this property</a>

modified\_at: string

formatdate-time

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

public: boolean

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20public">Link to this property</a>

description?: string

<a href="#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)>)

#### AIAuthors

##### [Author Search](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/authors/methods/list)

client.ai.authors.list(AuthorListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [AuthorListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.authors%20%3E%20(model)%20author_list_response%20%3E%20(schema)>)>

GET/accounts/{account\_id}/ai/authors/search

##### ModelsExpand Collapse

AuthorListResponse = unknown

[Link to this property](<#(resource)%20ai.authors%20%3E%20(model)%20author_list_response%20%3E%20(schema)>)

#### AITasks

##### [Task Search](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/tasks/methods/list)

client.ai.tasks.list(TaskListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [TaskListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.tasks%20%3E%20(model)%20task_list_response%20%3E%20(schema)>)>

GET/accounts/{account\_id}/ai/tasks/search

##### ModelsExpand Collapse

TaskListResponse = unknown

[Link to this property](<#(resource)%20ai.tasks%20%3E%20(model)%20task_list_response%20%3E%20(schema)>)

#### AIModels

##### [Model Search](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/models/methods/list)

client.ai.models.list(ModelListParams {account\_id, author, format, 7 more } params, RequestOptionsoptions?): V4PagePaginationArray< [ModelListResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.models%20%3E%20(model)%20model_list_response%20%3E%20(schema)>)>

GET/accounts/{account\_id}/ai/models/search

##### ModelsExpand Collapse

ModelListResponse = unknown

[Link to this property](<#(resource)%20ai.models%20%3E%20(model)%20model_list_response%20%3E%20(schema)>)

#### AIModelsSchema

##### [Get an AI model's input and output schemas](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/models/subresources/schema/methods/get)

client.ai.models.schema.get(SchemaGetParams {account\_id, model } params, RequestOptionsoptions?): [SchemaGetResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)>) {input, output }

GET/accounts/{account\_id}/ai/models/schema

##### ModelsExpand Collapse

<details>

<summary>

SchemaGetResponse {input, output }

</summary>

<details>

<summary>

input: Input {additionalProperties, description, type }

</summary>

additionalProperties: boolean

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20additionalProperties">Link to this property</a>

description: string

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20description">Link to this property</a>

type: string

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20input%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20input">Link to this property</a>

<details>

<summary>

output: Output {additionalProperties, description, type }

</summary>

additionalProperties: boolean

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20output%20%3E%20(property)%20additionalProperties">Link to this property</a>

description: string

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20output%20%3E%20(property)%20description">Link to this property</a>

type: string

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20output%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)%20%3E%20(property)%20output">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.models.schema%20%3E%20(model)%20schema_get_response%20%3E%20(schema)>)

#### AITo Markdown

##### [Convert uploaded files to Markdown](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/to_markdown/methods/transform)

client.ai.toMarkdown.transform(ToMarkdownTransformParams {account\_id, file } params, RequestOptionsoptions?): SinglePage< [ToMarkdownTransformResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)>) {data, format, mimeType, 2 more } >

POST/accounts/{account\_id}/ai/tomarkdown

##### [List supported Markdown conversion formats](https://developers.cloudflare.com/api/typescript/resources/ai/subresources/to_markdown/methods/supported)

client.ai.toMarkdown.supported(ToMarkdownSupportedParams {account\_id } params, RequestOptionsoptions?): SinglePage< [ToMarkdownSupportedResponse](<https://developers.cloudflare.com/api/typescript/resources/ai#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_supported_response%20%3E%20(schema)>) {extension, mimeType } >

GET/accounts/{account\_id}/ai/tomarkdown/supported

##### ModelsExpand Collapse

<details>

<summary>

ToMarkdownTransformResponse {data, format, mimeType, 2 more }

</summary>

data: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

format: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)%20%3E%20(property)%20format">Link to this property</a>

mimeType: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)%20%3E%20(property)%20mimeType">Link to this property</a>

name: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

tokens: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)%20%3E%20(property)%20tokens">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_transform_response%20%3E%20(schema)>)

<details>

<summary>

ToMarkdownSupportedResponse {extension, mimeType }

</summary>

extension: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_supported_response%20%3E%20(schema)%20%3E%20(property)%20extension">Link to this property</a>

mimeType: string

<a href="#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_supported_response%20%3E%20(schema)%20%3E%20(property)%20mimeType">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai.to_markdown%20%3E%20(model)%20to_markdown_supported_response%20%3E%20(schema)>)