Skip to main content

Cloudflare/workers Ai

@webframp/cloudflare/workers-aiv2026.07.19.1· 6d agoMODELS
01README

Cloudflare Workers AI — model inference, fine-tuning, LoRA adapters

02Release Notes

2026.07.19.1

Added: Initial code-generated release of @webframp/cloudflare/workers-ai with 228 methods covering the Cloudflare workers ai API surface.

03Models1
cloudflare/workers_ai.tsv2026.07.19.1

Global Arguments

ArgumentTypeDescription
apiTokenstringCloudflare API token
accountIdstringCloudflare account ID
fn get_credit_balance()
Get credit balance
fn get_invoice_history(type?: enum)
Get invoice history
ArgumentTypeDescription
type?enumFilter invoice type: auto, manual, or all.
fn get_invoice_preview()
Get invoice preview
fn get_spending_limit()
Get spending limit
fn delete_spending_limit()
Delete spending limit
fn create_topup(amount: number)
Create a top-up
ArgumentTypeDescription
amountnumberTop-up amount in cents (min 1000).
fn get_topup_config()
Get auto top-up configuration
fn create_aig_billing_set_topup_config(amount: number, threshold: number)
Set auto top-up configuration
ArgumentTypeDescription
amountnumberAuto top-up amount in cents (min 1000).
thresholdnumberBalance threshold in cents that triggers auto top-up (min 500).
fn delete_topup_config()
Delete auto top-up configuration
fn get_topup_limits()
Get account top-up limits
fn create_aig_billing_check_topup_status(payment_intent_id: string)
Check top-up status
ArgumentTypeDescription
payment_intent_idstringStripe invoice ID to check status for.
fn get_usage_history(value_grouping_window?: enum, start_time?: number, end_time?: number)
Get usage history
ArgumentTypeDescription
value_grouping_window?enumGrouping window for usage data.
start_time?numberStart time as Unix timestamp in milliseconds.
end_time?numberEnd time as Unix timestamp in milliseconds.
fn list_account_provider(page?: number, per_page?: number, beta?: boolean, enable?: boolean, search?: string)
List Account Providers
ArgumentTypeDescription
page?number
per_page?number
beta?boolean
enable?boolean
search?string
fn create_account_provider(base_url: string, beta?: boolean, curl_example?: string, description?: string, enable?: boolean, headers?: string, js_example?: string, link?: string, name: string, position?: number, slug: string)
Create a new Account Provider
ArgumentTypeDescription
base_urlstring
beta?boolean
curl_example?string
description?string
enable?boolean
headers?string
js_example?string
link?string
namestring
position?number
slugstring
fn list_account_provider_cost(page?: number, per_page?: number, enable?: boolean, account_provider_id?: string, model_rule?: enum, cost_type?: string, search?: string)
List Account Provider Costs
ArgumentTypeDescription
page?number
per_page?number
enable?boolean
account_provider_id?string
model_rule?enum
cost_type?string
search?string
fn create_account_provider_cost(account_provider_id: string, cost_in?: number, cost_out?: number, cost_type?: string, enable?: boolean, model: string, model_rule?: enum, token_pricing?: object)
Create a new Account Provider Cost
ArgumentTypeDescription
account_provider_idstring
cost_in?number
cost_out?number
cost_type?string
enable?boolean
modelstring
model_rule?enum
token_pricing?object
fn get_aig_config_fetch_account_provider_cost(id: string)
Fetch a Account Provider Cost
ArgumentTypeDescription
idstring
fn update_account_provider_cost(id: string, cost_in?: number, cost_out?: number, cost_type?: string, enable?: boolean, model?: string, model_rule?: enum, token_pricing?: object)
Update a Account Provider Cost
ArgumentTypeDescription
idstring
cost_in?number
cost_out?number
cost_type?string
enable?boolean
model?string
model_rule?enum
token_pricing?object
fn delete_account_provider_cost(id: string)
Delete a Account Provider Cost
ArgumentTypeDescription
idstring
fn get_aig_config_fetch_account_provider(id: string)
Fetch a Account Provider
ArgumentTypeDescription
idstring
fn update_account_provider(id: string, base_url?: string, beta?: boolean, curl_example?: string, description?: string, enable?: boolean, headers?: string, js_example?: string, link?: string, logo?: string, name?: string, position?: number, slug?: string)
Update a Account Provider
ArgumentTypeDescription
idstring
base_url?string
beta?boolean
curl_example?string
description?string
enable?boolean
headers?string
js_example?string
link?string
logo?string
name?string
position?number
slug?string
fn delete_account_provider(id: string)
Delete a Account Provider
ArgumentTypeDescription
idstring
fn list_evaluators(page?: number, per_page?: number, order_by?: string, order_by_direction?: enum)
List Evaluators
ArgumentTypeDescription
page?number
per_page?number
order_by?string
order_by_direction?enum
fn list_gateway(page?: number, per_page?: number, search?: string)
List Gateways
ArgumentTypeDescription
page?number
per_page?number
search?string
fn create_gateway(authentication?: boolean, cache_invalidate_on_update: boolean, cache_ttl: number, collect_logs: boolean, log_management?: number, log_management_strategy?: enum, logpush?: boolean, logpush_public_key?: string, rate_limiting_interval: number, rate_limiting_limit: number, rate_limiting_technique?: enum, retry_backoff?: enum, retry_delay?: number, retry_max_attempts?: number, workers_ai_billing_mode?: enum, zdr?: boolean)
Create a new Gateway
ArgumentTypeDescription
authentication?boolean
cache_invalidate_on_updateboolean
cache_ttlnumber
collect_logsboolean
log_management?number
log_management_strategy?enum
logpush?boolean
logpush_public_key?string
rate_limiting_intervalnumber
rate_limiting_limitnumber
rate_limiting_technique?enum
retry_backoff?enumBackoff strategy for retry delays
retry_delay?numberDelay between retry attempts in milliseconds (0-5000)
retry_max_attempts?numberMaximum number of retry attempts for failed requests (1-5)
workers_ai_billing_mode?enumControls how Workers AI inference calls routed through this gateway are bille...
zdr?boolean
fn list_dataset(gateway_id: string, page?: number, per_page?: number, name?: string, enable?: boolean, search?: string)
List Datasets
ArgumentTypeDescription
gateway_idstring
page?number
per_page?number
name?string
enable?boolean
search?string
fn create_dataset(gateway_id: string, enable: boolean, filters: array, name: string)
Create a new Dataset
ArgumentTypeDescription
gateway_idstring
enableboolean
filtersarray
namestring
fn get_aig_config_fetch_dataset(gateway_id: string, id: string)
Fetch a Dataset
ArgumentTypeDescription
gateway_idstring
idstring
fn update_dataset(gateway_id: string, id: string, enable: boolean, filters: array, name: string)
Update a Dataset
ArgumentTypeDescription
gateway_idstring
idstring
enableboolean
filtersarray
namestring
fn delete_dataset(gateway_id: string, id: string)
Delete a Dataset
ArgumentTypeDescription
gateway_idstring
idstring
fn list_evaluations(gateway_id: string, page?: number, per_page?: number, name?: string, processed?: boolean, search?: string)
List Evaluations
ArgumentTypeDescription
gateway_idstring
page?number
per_page?number
name?string
processed?boolean
search?string
fn create_evaluations(gateway_id: string, dataset_ids: array, evaluation_type_ids: array, name: string)
Create a new Evaluation
ArgumentTypeDescription
gateway_idstring
dataset_idsarray
evaluation_type_idsarray
namestring
fn get_aig_config_fetch_evaluations(gateway_id: string, id: string)
Fetch a Evaluation
ArgumentTypeDescription
gateway_idstring
idstring
fn delete_evaluations(gateway_id: string, id: string)
Delete a Evaluation
ArgumentTypeDescription
gateway_idstring
idstring
fn list_gateway_logs(gateway_id: string, search?: string, page?: number, per_page?: number, order_by?: enum, order_by_direction?: enum, filters?: string, meta_info?: boolean, direction?: enum, start_date?: string, end_date?: string, min_cost?: number, max_cost?: number, min_tokens_in?: number, max_tokens_in?: number, min_tokens_out?: number, max_tokens_out?: number, min_total_tokens?: number, max_total_tokens?: number, min_duration?: number, max_duration?: number, feedback?: string, success?: boolean, cached?: boolean, model?: string, model_type?: string, provider?: string, request_content_type?: string, response_content_type?: string)
List Gateway Logs
ArgumentTypeDescription
gateway_idstring
search?string
page?number
per_page?number
order_by?enum
order_by_direction?enum
filters?string
meta_info?boolean
direction?enum
start_date?string
end_date?string
min_cost?number
max_cost?number
min_tokens_in?number
max_tokens_in?number
min_tokens_out?number
max_tokens_out?number
min_total_tokens?number
max_total_tokens?number
min_duration?number
max_duration?number
feedback?string
success?boolean
cached?boolean
model?string
model_type?string
provider?string
request_content_type?string
response_content_type?string
fn delete_gateway_logs(gateway_id: string, order_by?: enum, order_by_direction?: enum, filters?: string, limit?: number)
Delete Gateway Logs
ArgumentTypeDescription
gateway_idstring
order_by?enum
order_by_direction?enum
filters?string
limit?number
fn get_gateway_log_detail(id: string, gateway_id: string)
Get Gateway Log Detail
ArgumentTypeDescription
idstring
gateway_idstring
fn patch_gateway_log(id: string, gateway_id: string, feedback?: number, metadata?: record, score?: number)
Patch Gateway Log
ArgumentTypeDescription
idstring
gateway_idstring
feedback?number
metadata?record
score?number
fn get_gateway_log_request(id: string, gateway_id: string)
Get Gateway Log Request
ArgumentTypeDescription
idstring
gateway_idstring
fn get_gateway_log_response(id: string, gateway_id: string)
Get Gateway Log Response
ArgumentTypeDescription
idstring
gateway_idstring
fn list_providers(gateway_id: string, page?: number, per_page?: number)
List Provider Configs
ArgumentTypeDescription
gateway_idstring
page?number
per_page?number
fn create_providers(gateway_id: string, alias: string, default_config: boolean, provider_slug: string, rate_limit?: number, rate_limit_period?: number, secret?: string, secret_id?: string)
Create a new Provider Configs
ArgumentTypeDescription
gateway_idstring
aliasstring
default_configboolean
provider_slugstring
rate_limit?number
rate_limit_period?number
secret?string
secret_id?string
fn update_providers(gateway_id: string, id: string, secret: string)
Update a Provider Configs
ArgumentTypeDescription
gateway_idstring
idstring
secretstring
fn delete_providers(gateway_id: string, id: string)
Delete a Provider Configs
ArgumentTypeDescription
gateway_idstring
idstring
fn list_gateway_dynamic_routes(gateway_id: string, page?: number, per_page?: number)
List all AI Gateway Dynamic Routes.
ArgumentTypeDescription
gateway_idstring
page?numberPage number
per_page?numberNumber of routes per page
fn create_aig_config_post_gateway_dynamic_route(gateway_id: string, elements?: array, name: string)
Create a new AI Gateway Dynamic Route.
ArgumentTypeDescription
gateway_idstring
elements?array
namestring
fn get_gateway_dynamic_route(gateway_id: string, id: string)
Get an AI Gateway Dynamic Route.
ArgumentTypeDescription
gateway_idstring
idstring
fn update_gateway_dynamic_route(gateway_id: string, id: string, name: string)
Update an AI Gateway Dynamic Route.
ArgumentTypeDescription
gateway_idstring
idstring
namestring
fn delete_gateway_dynamic_route(gateway_id: string, id: string)
Delete an AI Gateway Dynamic Route.
ArgumentTypeDescription
gateway_idstring
idstring
fn list_gateway_dynamic_route_deployments(gateway_id: string, id: string)
List all AI Gateway Dynamic Route Deployments.
ArgumentTypeDescription
gateway_idstring
idstring
fn create_aig_config_post_gateway_dynamic_route_deployment(gateway_id: string, id: string, version_id: string)
Create a new AI Gateway Dynamic Route Deployment.
ArgumentTypeDescription
gateway_idstring
idstring
version_idstring
fn list_gateway_dynamic_route_versions(gateway_id: string, id: string)
List all AI Gateway Dynamic Route Versions.
ArgumentTypeDescription
gateway_idstring
idstring
fn create_aig_config_post_gateway_dynamic_route_version(gateway_id: string, id: string, elements?: array)
Create a new AI Gateway Dynamic Route Version.
ArgumentTypeDescription
gateway_idstring
idstring
elements?array
fn get_gateway_dynamic_route_version(gateway_id: string, id: string, version_id: string)
Get an AI Gateway Dynamic Route Version.
ArgumentTypeDescription
gateway_idstring
idstring
version_idstring
fn get_gateway_url(gateway_id: string, provider: string)
Get Gateway URL
ArgumentTypeDescription
gateway_idstring
providerstring
fn get_aig_config_fetch_gateway(id: string)
Fetch a Gateway
ArgumentTypeDescription
idstring
fn update_gateway(id: string, authentication?: boolean, cache_invalidate_on_update: boolean, cache_ttl: number, collect_logs: boolean, dlp?: union, guardrails?: object, log_management?: number, log_management_strategy?: enum, logpush?: boolean, logpush_public_key?: string, otel?: array, rate_limiting_interval: number, rate_limiting_limit: number, rate_limiting_technique?: enum, retry_backoff?: enum, retry_delay?: number, retry_max_attempts?: number, spend_limits?: object, store_id?: string, stripe?: object, workers_ai_billing_mode?: enum, zdr?: boolean)
Update a Gateway
ArgumentTypeDescription
idstring
authentication?boolean
cache_invalidate_on_updateboolean
cache_ttlnumber
collect_logsboolean
dlp?union
guardrails?object
log_management?number
log_management_strategy?enum
logpush?boolean
logpush_public_key?string
otel?array
rate_limiting_intervalnumber
rate_limiting_limitnumber
rate_limiting_technique?enum
retry_backoff?enumBackoff strategy for retry delays
retry_delay?numberDelay between retry attempts in milliseconds (0-5000)
retry_max_attempts?numberMaximum number of retry attempts for failed requests (1-5)
spend_limits?object
store_id?string
stripe?object
workers_ai_billing_mode?enumControls how Workers AI inference calls routed through this gateway are bille...
zdr?boolean
fn delete_gateway(id: string)
Delete a Gateway
ArgumentTypeDescription
idstring
fn list_instances(page?: number, per_page?: number, search?: string, namespace?: string, order_by?: enum, order_by_direction?: enum)
List AI Search instances.
ArgumentTypeDescription
page?numberPage number (1-indexed).
per_page?numberNumber of results per page.
search?stringFilter instances whose id contains this string (case-insensitive).
namespace?stringFilter by namespace.
order_by?enumField to order results by.
order_by_direction?enumOrder direction.
fn create_instance(ai_gateway_id?: string, ai_search_model?: union, cache?: boolean, cache_threshold?: enum, cache_ttl?: union, chunk?: boolean, chunk_overlap?: number, chunk_size?: number, custom_metadata?: array, embedding_model?: union, fusion_method?: enum, hybrid_search_enabled?: boolean, index_method?: object, indexing_options?: object, max_num_results?: number, metadata?: object, public_endpoint_params?: object, reranking?: boolean, reranking_model?: union, retrieval_options?: object, rewrite_model?: union, rewrite_query?: boolean, score_threshold?: number, source?: string, source_params?: object, sync_interval?: union, token_id?: string, type?: union)
Create an AI Search instance.
ArgumentTypeDescription
ai_gateway_id?string
ai_search_model?union
cache?boolean
cache_threshold?enum
cache_ttl?unionCache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (...
chunk?boolean
chunk_overlap?number
chunk_size?number
custom_metadata?array
embedding_model?union
fusion_method?enum
hybrid_search_enabled?booleanDeprecated — use index_method instead.
index_method?objectControls which storage backends are used during indexing. Defaults to vector-...
indexing_options?object
max_num_results?number
metadata?object
public_endpoint_params?object
reranking?boolean
reranking_model?union
retrieval_options?object
rewrite_model?union
rewrite_query?boolean
score_threshold?number
source?string
source_params?object
sync_interval?unionInterval between automatic syncs, in seconds. Allowed values: 900 (15min), 18...
token_id?string
type?union
fn get_ai_search_fetch_instance(id: string)
Get an AI Search instance.
ArgumentTypeDescription
idstring
fn update_instance(id: string, ai_gateway_id?: string, ai_search_model?: union, cache?: boolean, cache_threshold?: enum, cache_ttl?: union, chunk?: boolean, chunk_overlap?: number, chunk_size?: number, custom_metadata?: array, embedding_model?: union, fusion_method?: enum, index_method?: object, indexing_options?: object, max_num_results?: number, metadata?: object, paused?: boolean, public_endpoint_params?: object, reranking?: boolean, reranking_model?: union, retrieval_options?: object, rewrite_model?: union, rewrite_query?: boolean, score_threshold?: number, source?: string, source_params?: object, summarization?: boolean, summarization_model?: union, sync_interval?: union, system_prompt_ai_search?: string, system_prompt_index_summarization?: string, system_prompt_rewrite_query?: string, token_id?: string)
Update an AI Search instance.
ArgumentTypeDescription
idstring
ai_gateway_id?string
ai_search_model?union
cache?boolean
cache_threshold?enum
cache_ttl?unionCache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (...
chunk?boolean
chunk_overlap?number
chunk_size?number
custom_metadata?array
embedding_model?union
fusion_method?enum
index_method?objectControls which storage backends are used during indexing. Defaults to vector-...
indexing_options?object
max_num_results?number
metadata?object
paused?boolean
public_endpoint_params?object
reranking?boolean
reranking_model?union
retrieval_options?object
rewrite_model?union
rewrite_query?boolean
score_threshold?number
source?string
source_params?object
summarization?boolean
summarization_model?union
sync_interval?unionInterval between automatic syncs, in seconds. Allowed values: 900 (15min), 18...
system_prompt_ai_search?string
system_prompt_index_summarization?string
system_prompt_rewrite_query?string
token_id?string
fn delete_instance(id: string)
Delete an AI Search instance.
ArgumentTypeDescription
idstring
fn create_ai_search_instance_chat_completion(id: string, ai_search_options?: object, messages: array, model?: union, stream?: boolean)
Chat Completions
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
ai_search_options?object
messagesarray
model?union
stream?boolean
fn list_jobs(id: string, page?: number, per_page?: number)
List Jobs
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
page?number
per_page?number
fn create_job(id: string, description?: string)
Create new job
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
description?string
fn get_job(id: string, job_id: string)
Get a Job Details
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
job_idstring
fn update_ai_search_instance_change_job_status(id: string, job_id: string, action: enum)
Cancel an indexing job.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
job_idstring
actionenum
fn list_job_logs(id: string, job_id: string, page?: number, per_page?: number)
List Job Logs
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
job_idstring
page?number
per_page?number
fn create_ai_search_instance_search(id: string, ai_search_options?: object, messages?: array, query?: string)
Search
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
ai_search_options?object
messages?arrayOpenAI-compatible message array. For multimodal queries, set the last user me...
query?stringA simple text query string. Alternative to 'messages' — provide either this o...
fn get_ai_search_stats(id: string)
Get instance statistics.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
fn list_namespaces(page?: number, per_page?: number, search?: string)
List namespaces.
ArgumentTypeDescription
page?numberPage number (1-indexed).
per_page?numberNumber of results per page.
search?stringFilter namespaces whose name or description contains this string (case-insensitive).
fn create_namespace(description?: string, name: string)
Create namespace.
ArgumentTypeDescription
description?stringOptional description for the namespace. Max 256 characters.
namestring
fn get_ai_search_fetch_namespace(name: string)
Read namespace.
ArgumentTypeDescription
namestring
fn update_namespace(name: string, description?: string)
Update namespace.
ArgumentTypeDescription
namestring
description?stringOptional description for the namespace. Max 256 characters.
fn delete_namespace(name: string)
Delete namespace.
ArgumentTypeDescription
namestring
fn create_ai_search_namespace_multi_instance_chat_completion(name: string, ai_search_options?: object, messages: array, model?: union, stream?: boolean)
Multi-Instance Chat Completions
ArgumentTypeDescription
namestringNamespace name
ai_search_options?object
messagesarray
model?union
stream?boolean
fn get_ai_search_namespace_fetch_instance(id: string, name: string)
Get an AI Search instance.
ArgumentTypeDescription
idstring
namestringNamespace name
fn update_ai_search_move_instance(name: string, id: string, new_namespace: string)
Move an instance to a different namespace.
ArgumentTypeDescription
namestringCurrent namespace of the instance.
idstringInstance id.
new_namespacestringTarget namespace to move the instance into.
fn create_ai_search_namespace_instance_chat_completion(id: string, name: string, ai_search_options?: object, messages: array, model?: union, stream?: boolean)
Chat Completions
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
ai_search_options?object
messagesarray
model?union
stream?boolean
fn list_items(id: string, name: string, page?: number, per_page?: number, search?: string, sort_by?: enum, status?: enum, source?: string, metadata_filter?: string, item_id?: string, key?: string)
Items List.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
page?number
per_page?number
search?string
sort_by?enumSort order for items. "status" (default) sorts by status priority then last_seen_at. "modified_at" sorts by file modification time (most recent first), falling back to created_at.
status?enum
source?stringFilter items by source_id. Use "builtin" for uploaded files, or a source identifier like "web-crawler:https://example.com".
metadata_filter?stringJSON-encoded metadata filter using Vectorize filter syntax. Examples: {"folder":"reports/"}, {"timestamp":{"$gte":1700000000000}}, {"folder":{"$in":["docs/","reports/"]}}
item_id?stringFilter items by their unique ID. Returns at most one item.
key?stringFilter items by their exact key (object key / filename). Keys are unique per source, so combine with `source` to disambiguate across data sources.
fn ai_search_namespace_instance_upload_item(id: string, name: string)
Upload Item.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
fn create_or_update_item(id: string, name: string, key: string, next_action: enum, wait_for_completion?: boolean)
Create or Update Item.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
keystringItem key / filename. Must not exceed 128 characters.
next_actionenum
wait_for_completion?booleanWait for indexing to fully complete before responding. On RAGs with vector in...
fn get_item(id: string, item_id: string, name: string)
Get Item.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
item_idstring
namestringNamespace name
fn update_ai_search_namespace_instance_sync_item(id: string, item_id: string, name: string, next_action: enum, wait_for_completion?: boolean)
Sync Item.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
item_idstring
namestringNamespace name
next_actionenum
wait_for_completion?booleanWait for indexing to fully complete before responding. On RAGs with vector in...
fn delete_item(id: string, item_id: string, name: string)
Delete Item.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
item_idstring
namestringNamespace name
fn list_item_chunks(id: string, item_id: string, name: string, limit?: number, offset?: number)
List Item Chunks.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
item_idstring
namestringNamespace name
limit?number
offset?number
fn list_ai_search_namespace_instance_logs_item(id: string, item_id: string, name: string, limit?: number, cursor?: string)
Item Logs.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
item_idstring
namestringNamespace name
limit?number
cursor?string
fn update_ai_search_namespace_instance_change_job_status(id: string, job_id: string, name: string, action: enum)
Cancel an indexing job.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
job_idstring
namestringNamespace name
actionenum
fn create_ai_search_namespace_instance_search(id: string, name: string, ai_search_options?: object, messages?: array, query?: string)
Search
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
ai_search_options?object
messages?arrayOpenAI-compatible message array. For multimodal queries, set the last user me...
query?stringA simple text query string. Alternative to 'messages' — provide either this o...
fn get_ai_search_namespace_stats(id: string, name: string)
Get instance statistics.
ArgumentTypeDescription
idstringAI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
namestringNamespace name
fn create_ai_search_namespace_multi_instance_search(name: string, ai_search_options?: object, messages?: array, query?: string)
Multi-Instance Search
ArgumentTypeDescription
namestringNamespace name
ai_search_options?object
messages?arrayOpenAI-compatible message array. For multimodal queries, set the last user me...
query?stringA simple text query string. Alternative to 'messages' — provide either this o...
fn list_tokens(page?: number, per_page?: number, search?: string)
List tokens.
ArgumentTypeDescription
page?numberPage number (1-indexed).
per_page?numberNumber of results per page.
search?stringFilter tokens whose name contains this string (case-insensitive).
fn create_tokens(cf_api_id: string, cf_api_key: string, legacy?: boolean, name: string)
Create token.
ArgumentTypeDescription
cf_api_idstring
cf_api_keystring
legacy?boolean
namestring
fn get_ai_search_fetch_tokens(id: string)
Read token.
ArgumentTypeDescription
idstring
fn update_tokens(id: string, cf_api_id: string, cf_api_key: string, legacy?: boolean, name: string)
Update token.
ArgumentTypeDescription
idstring
cf_api_idstring
cf_api_keystring
legacy?boolean
namestring
fn delete_tokens(id: string)
Delete token.
ArgumentTypeDescription
idstring
fn list_workers_ai_search_author()
Author Search
fn list_finetunes()
List Finetunes
fn create_finetune(description?: string, model: string, name: string, public?: boolean)
Create a new Finetune
ArgumentTypeDescription
description?string
modelstring
namestring
public?boolean
fn list_public_finetunes(limit?: number, offset?: number, orderBy?: string)
List Public Finetunes
ArgumentTypeDescription
limit?numberPagination Limit
offset?numberPagination Offset
orderBy?stringOrder By Column Name
fn workers_ai_upload_finetune_asset(finetune_id: string)
Upload a Finetune Asset
ArgumentTypeDescription
finetune_idstring
fn get_model_schema(model?: string)
Get Model Schema
ArgumentTypeDescription
model?stringModel Name
fn get_workers_ai_search_model(per_page?: number, page?: number, task?: string, author?: string, source?: number, hide_experimental?: boolean, search?: string, include_deprecated?: boolean, format?: enum)
Model Search
ArgumentTypeDescription
per_page?number
page?number
task?stringFilter by Task Name
author?stringFilter by Author
source?numberFilter by Source Id
hide_experimental?booleanFilter to hide experimental models
search?stringSearch
include_deprecated?booleanIf true, include models whose planned_deprecation_date is in the past — but only within a three-month grace window after that date. Models whose planned_deprecation_date is more than three months in the past remain hidden regardless of this flag. Future planned-deprecation dates are always included regardless of this flag. Defaults to false, preserving the existing behavior of hiding all past-dated deprecations.
format?enumIf set, return models in the requested marketplace format instead of the default response.
fn create_workers_ai_post_run_generic(input: object, model: string, options?: object)
Execute AI Model (Generic)
ArgumentTypeDescription
inputobjectModel-specific input data. Format varies by model type.
modelstringThe AI model to execute (e.g., openai/gpt-5.5, anthropic/claude-opus-4.7)
options?object
fn create_workers_ai_post_run_cf_ai4bharat_indictrans2_en_indic_1b(queueRequest?: string, tags?: string, target_language: enum, text: union)
Execute @cf/ai4bharat/indictrans2-en-indic-1B model.
ArgumentTypeDescription
queueRequest?string
tags?string
target_languageenumTarget langauge to translate to
textunionInput text to translate. Can be a single string or a list of strings.
fn create_workers_ai_post_run_cf_ai4bharat_nonomni_indictrans2_en_indic_1b(queueRequest?: string, tags?: string, target_language: enum, text: union)
Execute @cf/ai4bharat/nonomni-indictrans2-en-indic-1b model.
ArgumentTypeDescription
queueRequest?string
tags?string
target_languageenumTarget langauge to translate to
textunionInput text to translate. Can be a single string or a list of strings.
fn workers_ai_post_run_cf_aisingapore_gemma_sea_lion_v4_27b_it(queueRequest?: string, tags?: string)
Execute @cf/aisingapore/gemma-sea-lion-v4-27b-it model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_bge_base_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/bge-base-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_bge_large_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/bge-large-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_bge_m3(queueRequest?: string, tags?: string)
Execute @cf/baai/bge-m3 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_baai_bge_reranker_base(queueRequest?: string, tags?: string, contexts?: array, query: string, top_k?: number)
Execute @cf/baai/bge-reranker-base model.
ArgumentTypeDescription
queueRequest?string
tags?string
contexts?arrayList of provided contexts. Note that the index in this array is important, as...
querystringA query you wish to perform against the provided contexts.
top_k?numberNumber of returned results starting with the best score.
fn workers_ai_post_run_cf_baai_bge_small_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/bge-small-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_nonomni_bge_base_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/nonomni-bge-base-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_nonomni_bge_large_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/nonomni-bge-large-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_nonomni_bge_m3(queueRequest?: string, tags?: string)
Execute @cf/baai/nonomni-bge-m3 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_baai_nonomni_bge_small_en_v1_5(queueRequest?: string, tags?: string)
Execute @cf/baai/nonomni-bge-small-en-v1.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_black_forest_labs_flux_1_schnell(queueRequest?: string, tags?: string, prompt: string, steps?: number)
Execute @cf/black-forest-labs/flux-1-schnell model.
ArgumentTypeDescription
queueRequest?string
tags?string
promptstringA text description of the image you want to generate.
steps?numberThe number of diffusion steps; higher values can improve quality but take lon...
fn create_workers_ai_post_run_cf_black_forest_labs_flux_2_dev(queueRequest?: string, tags?: string, multipart?: object)
Execute @cf/black-forest-labs/flux-2-dev model.
ArgumentTypeDescription
queueRequest?string
tags?string
multipart?object
fn create_workers_ai_post_run_cf_black_forest_labs_flux_2_klein_4b(queueRequest?: string, tags?: string, multipart?: object)
Execute @cf/black-forest-labs/flux-2-klein-4b model.
ArgumentTypeDescription
queueRequest?string
tags?string
multipart?object
fn create_workers_ai_post_run_cf_black_forest_labs_flux_2_klein_9b(queueRequest?: string, tags?: string, multipart?: object)
Execute @cf/black-forest-labs/flux-2-klein-9b model.
ArgumentTypeDescription
queueRequest?string
tags?string
multipart?object
fn create_workers_ai_post_run_cf_bytedance_stable_diffusion_xl_lightning(queueRequest?: string, tags?: string, guidance?: number, height?: number, image?: array, image_b64?: string, mask?: array, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, strength?: number, width?: number)
Execute @cf/bytedance/stable-diffusion-xl-lightning model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
image?arrayFor use with img2img tasks. An array of integers that represent the image dat...
image_b64?stringFor use with img2img tasks. A base64-encoded string of the input image
mask?arrayAn array representing An array of integers that represent mask image data for...
negative_prompt?stringText describing elements to avoid in the generated image
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate
seed?numberRandom seed for reproducibility of the image generation
strength?numberA value between 0 and 1 indicating how strongly to apply the transformation d...
width?numberThe width of the generated image in pixels
fn get_workers_ai_post_websocket_run_cf_deepgram_aura()
Open Websocket connection with @cf/deepgram/aura model.
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_1()
Open Websocket connection with @cf/deepgram/aura-1 model.
fn create_workers_ai_post_run_cf_deepgram_aura_1(queueRequest?: string, tags?: string, bit_rate?: number, container?: enum, encoding?: enum, sample_rate?: number, speaker?: enum, text: string)
Execute @cf/deepgram/aura-1 model.
ArgumentTypeDescription
queueRequest?string
tags?string
bit_rate?numberThe bitrate of the audio in bits per second. Choose from predefined ranges or...
container?enumContainer specifies the file format wrapper for the output audio. The availab...
encoding?enumEncoding of the output audio.
sample_rate?numberSample Rate specifies the sample rate for the output audio. Based on the enco...
speaker?enumSpeaker used to produce the audio.
textstringThe text content to be converted to speech
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_1_internal()
Open Websocket connection with @cf/deepgram/aura-1-internal model.
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_2()
Open Websocket connection with @cf/deepgram/aura-2 model.
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_2_en()
Open Websocket connection with @cf/deepgram/aura-2-en model.
fn create_workers_ai_post_run_cf_deepgram_aura_2_en(queueRequest?: string, tags?: string, bit_rate?: number, container?: enum, encoding?: enum, sample_rate?: number, speaker?: enum, text?: string)
Execute @cf/deepgram/aura-2-en model.
ArgumentTypeDescription
queueRequest?string
tags?string
bit_rate?numberThe bitrate of the audio in bits per second. Choose from predefined ranges or...
container?enumContainer specifies the file format wrapper for the output audio. The availab...
encoding?enumEncoding of the output audio.
sample_rate?numberSample Rate specifies the sample rate for the output audio. Based on the enco...
speaker?enumSpeaker used to produce the audio.
text?stringThe text content to be converted to speech
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_2_en_ws()
Open Websocket connection with @cf/deepgram/aura-2-en-ws model.
fn get_workers_ai_post_websocket_run_cf_deepgram_aura_2_es()
Open Websocket connection with @cf/deepgram/aura-2-es model.
fn create_workers_ai_post_run_cf_deepgram_aura_2_es(queueRequest?: string, tags?: string, bit_rate?: number, container?: enum, encoding?: enum, sample_rate?: number, speaker?: enum, text?: string)
Execute @cf/deepgram/aura-2-es model.
ArgumentTypeDescription
queueRequest?string
tags?string
bit_rate?numberThe bitrate of the audio in bits per second. Choose from predefined ranges or...
container?enumContainer specifies the file format wrapper for the output audio. The availab...
encoding?enumEncoding of the output audio.
sample_rate?numberSample Rate specifies the sample rate for the output audio. Based on the enco...
speaker?enumSpeaker used to produce the audio.
text?stringThe text content to be converted to speech
fn get_workers_ai_post_websocket_run_cf_deepgram_flux()
Open Websocket connection with @cf/deepgram/flux model.
fn create_workers_ai_post_run_cf_deepgram_flux(queueRequest?: string, tags?: string, eager_eot_threshold?: string, encoding?: enum, eot_threshold?: string, eot_timeout_ms?: string, keyterm?: string, mip_opt_out?: enum, sample_rate?: string, tag?: string)
Execute @cf/deepgram/flux model.
ArgumentTypeDescription
queueRequest?string
tags?string
eager_eot_threshold?stringEnd-of-turn confidence required to fire an eager end-of-turn event. When set,...
encoding?enumEncoding of the audio stream. Currently only supports raw signed little-endia...
eot_threshold?stringEnd-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9.
eot_timeout_ms?stringA turn will be finished when this much time has passed after speech, regardle...
keyterm?stringKeyterm prompting can improve recognition of specialized terminology. Pass mu...
mip_opt_out?enumOpts out requests from the Deepgram Model Improvement Program. Refer to Deepg...
sample_rate?stringSample rate of the audio stream in Hz.
tag?stringLabel your requests for the purpose of identification during usage reporting
fn get_workers_ai_post_websocket_run_cf_deepgram_nova_3()
Open Websocket connection with @cf/deepgram/nova-3 model.
fn create_workers_ai_post_run_cf_deepgram_nova_3(queueRequest?: string, tags?: string, audio: object, channels?: number, custom_intent?: string, custom_intent_mode?: enum, custom_topic?: string, custom_topic_mode?: enum, detect_entities?: boolean, detect_language?: boolean, diarize?: boolean, dictation?: boolean, encoding?: enum, endpointing?: string, extra?: string, filler_words?: boolean, interim_results?: boolean, keyterm?: string, keywords?: string, language?: string, measurements?: boolean, mip_opt_out?: boolean, mode?: enum, multichannel?: boolean, numerals?: boolean, paragraphs?: boolean, profanity_filter?: boolean, punctuate?: boolean, redact?: string, replace?: string, search?: string, sentiment?: boolean, smart_format?: boolean, topics?: boolean, utt_split?: number, utterance_end_ms?: boolean, utterances?: boolean, vad_events?: boolean)
Execute @cf/deepgram/nova-3 model.
ArgumentTypeDescription
queueRequest?string
tags?string
audioobject
channels?numberThe number of channels in the submitted audio
custom_intent?stringCustom intents you want the model to detect within your input audio if present
custom_intent_mode?enumSets how the model will interpret intents submitted to the custom_intent para...
custom_topic?stringCustom topics you want the model to detect within your input audio or text if...
custom_topic_mode?enumSets how the model will interpret strings submitted to the custom_topic param...
detect_entities?booleanIdentifies and extracts key entities from content in submitted audio
detect_language?booleanIdentifies the dominant language spoken in submitted audio
diarize?booleanRecognize speaker changes. Each word in the transcript will be assigned a spe...
dictation?booleanIdentify and extract key entities from content in submitted audio
encoding?enumSpecify the expected encoding of your submitted audio
endpointing?stringIndicates how long model will wait to detect whether a speaker has finished s...
extra?stringArbitrary key-value pairs that are attached to the API response for usage in ...
filler_words?booleanFiller Words can help transcribe interruptions in your audio, like 'uh' and 'um'
interim_results?booleanSpecifies whether the streaming endpoint should provide ongoing transcription...
keyterm?stringKey term prompting can boost or suppress specialized terminology and brands.
keywords?stringKeywords can boost or suppress specialized terminology and brands.
language?stringThe BCP-47 language tag that hints at the primary spoken language. Depending ...
measurements?booleanSpoken measurements will be converted to their corresponding abbreviations.
mip_opt_out?booleanOpts out requests from the Deepgram Model Improvement Program. Refer to our D...
mode?enumMode of operation for the model representing broad area of topic that will be...
multichannel?booleanTranscribe each audio channel independently.
numerals?booleanNumerals converts numbers from written format to numerical format.
paragraphs?booleanSplits audio into paragraphs to improve transcript readability.
profanity_filter?booleanProfanity Filter looks for recognized profanity and converts it to the neares...
punctuate?booleanAdd punctuation and capitalization to the transcript.
redact?stringRedaction removes sensitive information from your transcripts.
replace?stringSearch for terms or phrases in submitted audio and replaces them.
search?stringSearch for terms or phrases in submitted audio.
sentiment?booleanRecognizes the sentiment throughout a transcript or text.
smart_format?booleanApply formatting to transcript output. When set to true, additional formattin...
topics?booleanDetect topics throughout a transcript or text.
utt_split?numberSeconds to wait before detecting a pause between words in submitted audio.
utterance_end_ms?booleanIndicates how long model will wait to send an UtteranceEnd message after a wo...
utterances?booleanSegments speech into meaningful semantic units.
vad_events?booleanIndicates that speech has started. You'll begin receiving Speech Started mess...
fn get_workers_ai_post_websocket_run_cf_deepgram_nova_3_internal()
Open Websocket connection with @cf/deepgram/nova-3-internal model.
fn get_workers_ai_post_websocket_run_cf_deepgram_nova_3_ws()
Open Websocket connection with @cf/deepgram/nova-3-ws model.
fn workers_ai_post_run_cf_deepseek_ai_deepseek_math_7b_instruct(queueRequest?: string, tags?: string)
Execute @cf/deepseek-ai/deepseek-math-7b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_deepseek_ai_deepseek_r1_distill_qwen_32b(queueRequest?: string, tags?: string)
Execute @cf/deepseek-ai/deepseek-r1-distill-qwen-32b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_defog_sqlcoder_7b_2(queueRequest?: string, tags?: string)
Execute @cf/defog/sqlcoder-7b-2 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_facebook_bart_large_cnn(queueRequest?: string, tags?: string, input_text: string, max_length?: number)
Execute @cf/facebook/bart-large-cnn model.
ArgumentTypeDescription
queueRequest?string
tags?string
input_textstringThe text that you want the model to summarize
max_length?numberThe maximum length of the generated summary in tokens
fn create_workers_ai_post_run_cf_facebook_nonomni_bart_large_cnn(queueRequest?: string, tags?: string, input_text: string, max_length?: number)
Execute @cf/facebook/nonomni-bart-large-cnn model.
ArgumentTypeDescription
queueRequest?string
tags?string
input_textstringThe text that you want the model to summarize
max_length?numberThe maximum length of the generated summary in tokens
fn workers_ai_post_run_cf_facebook_nonomni_detr_resnet_50(queueRequest?: string, tags?: string)
Execute @cf/facebook/nonomni-detr-resnet-50 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_fblgit_una_cybertron_7b_v2_bf16(queueRequest?: string, tags?: string)
Execute @cf/fblgit/una-cybertron-7b-v2-bf16 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_google_embeddinggemma_300m(queueRequest?: string, tags?: string, text: union)
Execute @cf/google/embeddinggemma-300m model.
ArgumentTypeDescription
queueRequest?string
tags?string
textunion
fn workers_ai_post_run_cf_google_gemma_2b_it_lora(queueRequest?: string, tags?: string)
Execute @cf/google/gemma-2b-it-lora model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_google_gemma_3_12b_it(queueRequest?: string, tags?: string)
Execute @cf/google/gemma-3-12b-it model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_google_gemma_4_26b_a4b_it(queueRequest?: string, tags?: string)
Execute @cf/google/gemma-4-26b-a4b-it model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_google_gemma_7b_it_lora(queueRequest?: string, tags?: string)
Execute @cf/google/gemma-7b-it-lora model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_google_nonomni_embeddinggemma_300m(queueRequest?: string, tags?: string, text: union)
Execute @cf/google/nonomni-embeddinggemma-300m model.
ArgumentTypeDescription
queueRequest?string
tags?string
textunionInput text to embed. Can be a single string or a list of strings.
fn create_workers_ai_post_run_cf_huggingface_distilbert_sst_2_int8(queueRequest?: string, tags?: string, text: string)
Execute @cf/huggingface/distilbert-sst-2-int8 model.
ArgumentTypeDescription
queueRequest?string
tags?string
textstringThe text that you want to classify
fn create_workers_ai_post_run_cf_huggingface_nonomni_distilbert_sst_2_int8(queueRequest?: string, tags?: string, text: string)
Execute @cf/huggingface/nonomni-distilbert-sst-2-int8 model.
ArgumentTypeDescription
queueRequest?string
tags?string
textstringThe text that you want to classify
fn workers_ai_post_run_cf_ibm_granite_granite_4_0_h_micro(queueRequest?: string, tags?: string)
Execute @cf/ibm-granite/granite-4.0-h-micro model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_leonardo_lucid_origin(queueRequest?: string, tags?: string, guidance?: number, height?: number, num_steps?: number, prompt: string, seed?: number, steps?: number, width?: number)
Execute @cf/leonardo/lucid-origin model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate.
seed?numberRandom seed for reproducibility of the image generation
steps?numberThe number of diffusion steps; higher values can improve quality but take longer
width?numberThe width of the generated image in pixels
fn create_workers_ai_post_run_cf_leonardo_phoenix_1_0(queueRequest?: string, tags?: string, guidance?: number, height?: number, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, width?: number)
Execute @cf/leonardo/phoenix-1.0 model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
negative_prompt?stringSpecify what to exclude from the generated images
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate.
seed?numberRandom seed for reproducibility of the image generation
width?numberThe width of the generated image in pixels
fn create_workers_ai_post_run_cf_lykon_dreamshaper_8_lcm(queueRequest?: string, tags?: string, guidance?: number, height?: number, image?: array, image_b64?: string, mask?: array, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, strength?: number, width?: number)
Execute @cf/lykon/dreamshaper-8-lcm model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
image?arrayFor use with img2img tasks. An array of integers that represent the image dat...
image_b64?stringFor use with img2img tasks. A base64-encoded string of the input image
mask?arrayAn array representing An array of integers that represent mask image data for...
negative_prompt?stringText describing elements to avoid in the generated image
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate
seed?numberRandom seed for reproducibility of the image generation
strength?numberA value between 0 and 1 indicating how strongly to apply the transformation d...
width?numberThe width of the generated image in pixels
fn workers_ai_post_run_cf_meta_llama_llama_2_7b_chat_hf_lora(queueRequest?: string, tags?: string)
Execute @cf/meta-llama/llama-2-7b-chat-hf-lora model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_2_7b_chat_fp16(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-2-7b-chat-fp16 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_2_7b_chat_int8(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-2-7b-chat-int8 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_8b_instruct(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3-8b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_8b_instruct_awq(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3-8b-instruct-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_1_70b_instruct_fp8_fast(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.1-70b-instruct-fp8-fast model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_awq(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.1-8b-instruct-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.1-8b-instruct-fp8 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8_fast(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.1-8b-instruct-fp8-fast model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_2_11b_vision_instruct(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.2-11b-vision-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_2_1b_instruct(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.2-1b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_2_3b_instruct(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.2-3b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_3_3_70b_instruct_fp8_fast(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-3.3-70b-instruct-fp8-fast model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_meta_llama_4_scout_17b_16e_instruct(queueRequest?: string, tags?: string)
Execute @cf/meta/llama-4-scout-17b-16e-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_meta_llama_guard_3_8b(queueRequest?: string, tags?: string, max_tokens?: number, messages: array, response_format?: object, temperature?: number)
Execute @cf/meta/llama-guard-3-8b model.
ArgumentTypeDescription
queueRequest?string
tags?string
max_tokens?numberThe maximum number of tokens to generate in the response.
messagesarrayAn array of message objects representing the conversation history.
response_format?objectDictate the output format of the generated response.
temperature?numberControls the randomness of the output; higher values produce more random resu...
fn workers_ai_post_run_cf_meta_m2m100_1_2b(queueRequest?: string, tags?: string)
Execute @cf/meta/m2m100-1.2b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_microsoft_nonomni_resnet_50(queueRequest?: string, tags?: string)
Execute @cf/microsoft/nonomni-resnet-50 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_microsoft_phi_2(queueRequest?: string, tags?: string)
Execute @cf/microsoft/phi-2 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_microsoft_resnet_50(queueRequest?: string, tags?: string)
Execute @cf/microsoft/resnet-50 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_1(queueRequest?: string, tags?: string)
Execute @cf/mistral/mistral-7b-instruct-v0.1 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_2_lora(queueRequest?: string, tags?: string)
Execute @cf/mistral/mistral-7b-instruct-v0.2-lora model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_mistralai_mistral_small_3_1_24b_instruct(queueRequest?: string, tags?: string)
Execute @cf/mistralai/mistral-small-3.1-24b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_moonshotai_kimi_k2_5(queueRequest?: string, tags?: string)
Execute @cf/moonshotai/kimi-k2.5 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_moonshotai_kimi_k2_6(queueRequest?: string, tags?: string)
Execute @cf/moonshotai/kimi-k2.6 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_moonshotai_kimi_k2_7_code(queueRequest?: string, tags?: string)
Execute @cf/moonshotai/kimi-k2.7-code model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_myshell_ai_melotts(queueRequest?: string, tags?: string, lang?: string, prompt: string)
Execute @cf/myshell-ai/melotts model.
ArgumentTypeDescription
queueRequest?string
tags?string
lang?stringThe speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'e...
promptstringA text description of the audio you want to generate
fn workers_ai_post_run_cf_nvidia_nemotron_3_120b_a12b(queueRequest?: string, tags?: string)
Execute @cf/nvidia/nemotron-3-120b-a12b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn get_workers_ai_post_websocket_run_cf_nvidia_nemotron_speech_streaming_en_0_6b()
Open Websocket connection with @cf/nvidia/nemotron-speech-streaming-en-0.6b model.
fn workers_ai_post_run_cf_nvidia_nemotron_speech_streaming_en_0_6b(queueRequest?: string, tags?: string)
Execute @cf/nvidia/nemotron-speech-streaming-en-0.6b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_openai_gpt_oss_120b(queueRequest?: string, tags?: string)
Execute @cf/openai/gpt-oss-120b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_openai_gpt_oss_20b(queueRequest?: string, tags?: string)
Execute @cf/openai/gpt-oss-20b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_openai_whisper(queueRequest?: string, tags?: string)
Execute @cf/openai/whisper model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_openai_whisper_large_v3_turbo(queueRequest?: string, tags?: string, audio?: union, beam_size?: number, compression_ratio_threshold?: number, condition_on_previous_text?: boolean, hallucination_silence_threshold?: number, initial_prompt?: string, language?: string, log_prob_threshold?: number, no_speech_threshold?: number, prefix?: string, task?: string, vad_filter?: boolean)
Execute @cf/openai/whisper-large-v3-turbo model.
ArgumentTypeDescription
queueRequest?string
tags?string
audio?union
beam_size?numberThe number of beams to use in beam search decoding. Higher values may improve...
compression_ratio_threshold?numberThreshold for filtering out segments with high compression ratio, which often...
condition_on_previous_text?booleanWhether to condition on previous text during transcription. Setting to false ...
hallucination_silence_threshold?numberOptional threshold (in seconds) to skip silent periods that may cause halluci...
initial_prompt?stringA text prompt to help provide context to the model on the contents of the audio.
language?stringThe language of the audio being transcribed or translated.
log_prob_threshold?numberThreshold for filtering out segments with low average log probability, indica...
no_speech_threshold?numberThreshold for detecting no-speech segments. Segments with no-speech probabili...
prefix?stringThe prefix appended to the beginning of the output of the transcription and c...
task?stringSupported tasks are 'translate' or 'transcribe'.
vad_filter?booleanPreprocess the audio with a voice activity detection model.
fn workers_ai_post_run_cf_openai_whisper_tiny_en(queueRequest?: string, tags?: string)
Execute @cf/openai/whisper-tiny-en model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_openchat_openchat_3_5_0106(queueRequest?: string, tags?: string)
Execute @cf/openchat/openchat-3.5-0106 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_pfnet_plamo_embedding_1b(queueRequest?: string, tags?: string, text: union)
Execute @cf/pfnet/plamo-embedding-1b model.
ArgumentTypeDescription
queueRequest?string
tags?string
textunionInput text to embed. Can be a single string or a list of strings.
fn get_workers_ai_post_websocket_run_cf_pipecat_ai_smart_turn_v2()
Open Websocket connection with @cf/pipecat-ai/smart-turn-v2 model.
fn get_workers_ai_post_websocket_run_cf_pipecat_ai_smart_turn_v3()
Open Websocket connection with @cf/pipecat-ai/smart-turn-v3 model.
fn workers_ai_post_run_cf_qwen_qwen1_5_0_5b_chat(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen1.5-0.5b-chat model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_qwen_qwen1_5_1_8b_chat(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen1.5-1.8b-chat model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_qwen_qwen1_5_14b_chat_awq(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen1.5-14b-chat-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_qwen_qwen1_5_7b_chat_awq(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen1.5-7b-chat-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_qwen_qwen2_5_coder_32b_instruct(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen2.5-coder-32b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_qwen_qwen3_30b_a3b_fp8(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwen3-30b-a3b-fp8 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_qwen_qwen3_embedding_0_6b(queueRequest?: string, tags?: string, documents?: union, instruction?: string, queries?: union, text?: union)
Execute @cf/qwen/qwen3-embedding-0.6b model.
ArgumentTypeDescription
queueRequest?string
tags?string
documents?union
instruction?stringOptional instruction for the task
queries?union
text?union
fn workers_ai_post_run_cf_qwen_qwq_32b(queueRequest?: string, tags?: string)
Execute @cf/qwen/qwq-32b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn create_workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_img2img(queueRequest?: string, tags?: string, guidance?: number, height?: number, image?: array, image_b64?: string, mask?: array, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, strength?: number, width?: number)
Execute @cf/runwayml/stable-diffusion-v1-5-img2img model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
image?arrayFor use with img2img tasks. An array of integers that represent the image dat...
image_b64?stringFor use with img2img tasks. A base64-encoded string of the input image
mask?arrayAn array representing An array of integers that represent mask image data for...
negative_prompt?stringText describing elements to avoid in the generated image
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate
seed?numberRandom seed for reproducibility of the image generation
strength?numberA value between 0 and 1 indicating how strongly to apply the transformation d...
width?numberThe width of the generated image in pixels
fn create_workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_inpainting(queueRequest?: string, tags?: string, guidance?: number, height?: number, image?: array, image_b64?: string, mask?: array, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, strength?: number, width?: number)
Execute @cf/runwayml/stable-diffusion-v1-5-inpainting model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
image?arrayFor use with img2img tasks. An array of integers that represent the image dat...
image_b64?stringFor use with img2img tasks. A base64-encoded string of the input image
mask?arrayAn array representing An array of integers that represent mask image data for...
negative_prompt?stringText describing elements to avoid in the generated image
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate
seed?numberRandom seed for reproducibility of the image generation
strength?numberA value between 0 and 1 indicating how strongly to apply the transformation d...
width?numberThe width of the generated image in pixels
fn create_workers_ai_post_run_cf_stabilityai_stable_diffusion_xl_base_1_0(queueRequest?: string, tags?: string, guidance?: number, height?: number, image?: array, image_b64?: string, mask?: array, negative_prompt?: string, num_steps?: number, prompt: string, seed?: number, strength?: number, width?: number)
Execute @cf/stabilityai/stable-diffusion-xl-base-1.0 model.
ArgumentTypeDescription
queueRequest?string
tags?string
guidance?numberControls how closely the generated image should adhere to the prompt; higher ...
height?numberThe height of the generated image in pixels
image?arrayFor use with img2img tasks. An array of integers that represent the image dat...
image_b64?stringFor use with img2img tasks. A base64-encoded string of the input image
mask?arrayAn array representing An array of integers that represent mask image data for...
negative_prompt?stringText describing elements to avoid in the generated image
num_steps?numberThe number of diffusion steps; higher values can improve quality but take longer
promptstringA text description of the image you want to generate
seed?numberRandom seed for reproducibility of the image generation
strength?numberA value between 0 and 1 indicating how strongly to apply the transformation d...
width?numberThe width of the generated image in pixels
fn get_workers_ai_post_websocket_run_cf_sven_test_pipe_http()
Open Websocket connection with @cf/sven/test-pipe-http model.
fn get_workers_ai_post_websocket_run_cf_test_hello_world_cog()
Open Websocket connection with @cf/test/hello-world-cog model.
fn workers_ai_post_run_cf_thebloke_discolm_german_7b_v1_awq(queueRequest?: string, tags?: string)
Execute @cf/thebloke/discolm-german-7b-v1-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_tiiuae_falcon_7b_instruct(queueRequest?: string, tags?: string)
Execute @cf/tiiuae/falcon-7b-instruct model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_tinyllama_tinyllama_1_1b_chat_v1_0(queueRequest?: string, tags?: string)
Execute @cf/tinyllama/tinyllama-1.1b-chat-v1.0 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_zai_org_glm_4_7_flash(queueRequest?: string, tags?: string)
Execute @cf/zai-org/glm-4.7-flash model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_cf_zai_org_glm_5_2(queueRequest?: string, tags?: string)
Execute @cf/zai-org/glm-5.2 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_google_gemma_7b_it(queueRequest?: string, tags?: string)
Execute @hf/google/gemma-7b-it model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_mistral_mistral_7b_instruct_v0_2(queueRequest?: string, tags?: string)
Execute @hf/mistral/mistral-7b-instruct-v0.2 model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_nexusflow_starling_lm_7b_beta(queueRequest?: string, tags?: string)
Execute @hf/nexusflow/starling-lm-7b-beta model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_nousresearch_hermes_2_pro_mistral_7b(queueRequest?: string, tags?: string)
Execute @hf/nousresearch/hermes-2-pro-mistral-7b model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_base_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/deepseek-coder-6.7b-base-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_instruct_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/deepseek-coder-6.7b-instruct-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_llama_2_13b_chat_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/llama-2-13b-chat-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_mistral_7b_instruct_v0_1_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/mistral-7b-instruct-v0.1-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_neural_chat_7b_v3_1_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/neural-chat-7b-v3-1-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_openhermes_2_5_mistral_7b_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/openhermes-2.5-mistral-7b-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_hf_thebloke_zephyr_7b_beta_awq(queueRequest?: string, tags?: string)
Execute @hf/thebloke/zephyr-7b-beta-awq model.
ArgumentTypeDescription
queueRequest?string
tags?string
fn workers_ai_post_run_model(model_name: string)
Execute AI model
ArgumentTypeDescription
model_namestring
fn list_workers_ai_search_task()
Task Search
fn workers_ai_post_to_markdown()
Convert Files into Markdown
fn get_to_markdown_supported()
Get all converted formats supported
04Stats
A
100 / 100
Downloads
0
Archive size
118.1 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels