---
title: Finetunes
---

[Skip to content](#_top)

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

[AI](https://developers.cloudflare.com/api/python/resources/ai)

Copy Markdown

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

---

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

# Finetunes

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

ai.finetunes.list(FinetuneListParams\*\*kwargs) -> [FinetuneListResponse](<https://developers.cloudflare.com/api/python/resources/ai#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_list_response%20%3E%20(schema)>)

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

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

ai.finetunes.create(FinetuneCreateParams\*\*kwargs) -> [FinetuneCreateResponse](<https://developers.cloudflare.com/api/python/resources/ai#(resource)%20ai.finetunes%20%3E%20(model)%20finetune_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class FinetuneListResponse: …

</summary>

id: str

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: datetime

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: str

<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: datetime

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: str

<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: Optional\[str]

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

class FinetuneCreateResponse: …

</summary>

id: str

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: datetime

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: str

<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: datetime

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: str

<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: bool

<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: Optional\[str]

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

#### FinetunesAssets

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

ai.finetunes.assets.create(strfinetune\_id, AssetCreateParams\*\*kwargs) -> [AssetCreateResponse](<https://developers.cloudflare.com/api/python/resources/ai#(resource)%20ai.finetunes.assets%20%3E%20(model)%20asset_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class AssetCreateResponse: …

</summary>

success: bool

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

#### FinetunesPublic

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

ai.finetunes.public.list(PublicListParams\*\*kwargs) -> SyncSinglePage\[[PublicListResponse](<https://developers.cloudflare.com/api/python/resources/ai#(resource)%20ai.finetunes.public%20%3E%20(model)%20public_list_response%20%3E%20(schema)>)]

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

##### ModelsExpand Collapse

<details>

<summary>

class PublicListResponse: …

</summary>

id: str

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: datetime

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: str

<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: datetime

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: str

<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: bool

<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: Optional\[str]

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