AI
Execute AI model
client.ai.run(stringmodelName, AIRunParamsparams, RequestOptionsoptions?): AIRunResponse
POST/accounts/{account_id}/ai/run/{model_name}
AIFinetunes
List Finetunes
client.ai.finetunes.list(FinetuneListParams { account_id } params, RequestOptionsoptions?): FinetuneListResponse { id, created_at, model, 3 more }
GET/accounts/{account_id}/ai/finetunes
Create a new Finetune
client.ai.finetunes.create(FinetuneCreateParams { account_id, model, name, 2 more } params, RequestOptionsoptions?): FinetuneCreateResponse { id, created_at, model, 4 more }
POST/accounts/{account_id}/ai/finetunes
AIFinetunesAssets
Upload a Finetune Asset
client.ai.finetunes.assets.create(stringfinetuneId, AssetCreateParams { account_id, file, file_name } params, RequestOptionsoptions?): AssetCreateResponse { success }
POST/accounts/{account_id}/ai/finetunes/{finetune_id}/finetune-assets
AIFinetunesPublic
List Public Finetunes
client.ai.finetunes.public.list(PublicListParams { account_id, limit, offset, orderBy } params, RequestOptionsoptions?): SinglePage<PublicListResponse { id, created_at, model, 4 more } >
GET/accounts/{account_id}/ai/finetunes/public
AIAuthors
Author Search
client.ai.authors.list(AuthorListParams { account_id } params, RequestOptionsoptions?): SinglePage<AuthorListResponse>
GET/accounts/{account_id}/ai/authors/search
AITasks
Task Search
client.ai.tasks.list(TaskListParams { account_id } params, RequestOptionsoptions?): SinglePage<TaskListResponse>
GET/accounts/{account_id}/ai/tasks/search
AIModels
Model Search
client.ai.models.list(ModelListParams { account_id, author, hide_experimental, 5 more } params, RequestOptionsoptions?): V4PagePaginationArray<ModelListResponse>
GET/accounts/{account_id}/ai/models/search
AIModelsSchema
Get Model Schema
client.ai.models.schema.get(SchemaGetParams { account_id, model } params, RequestOptionsoptions?): SchemaGetResponse { input, output }
GET/accounts/{account_id}/ai/models/schema
AITo Markdown
Convert Files into Markdown
client.ai.toMarkdown.transform(ToMarkdownTransformParams { account_id, file } params, RequestOptionsoptions?): SinglePage<ToMarkdownTransformResponse { data, format, mimeType, 2 more } >
POST/accounts/{account_id}/ai/tomarkdown
Get all converted formats supported
client.ai.toMarkdown.supported(ToMarkdownSupportedParams { account_id } params, RequestOptionsoptions?): SinglePage<ToMarkdownSupportedResponse { extension, mimeType } >
GET/accounts/{account_id}/ai/tomarkdown/supported