Public LoRA adapters

Last updated Jun 5, 2026 Cloudflare offers a few public LoRA adapters that can immediately be used for fine-tuned inference. You can try them out immediately via our playground ↗︎.

Public LoRAs will have the name cf-public-x, and the prefix will be reserved for Cloudflare.

Note

Have more LoRAs you would like to see? Let us know on Discord ↗︎.

Name Description Compatible with
cf-public-magicoder ↗︎ Coding tasks in multiple languages @cf/mistral/mistral-7b-instruct-v0.1 <br> @hf/mistral/mistral-7b-instruct-v0.2
cf-public-jigsaw-classification ↗︎ Toxic comment classification @cf/mistral/mistral-7b-instruct-v0.1 <br> @hf/mistral/mistral-7b-instruct-v0.2
cf-public-cnn-summarization ↗︎ Article summarization @cf/mistral/mistral-7b-instruct-v0.1 <br> @hf/mistral/mistral-7b-instruct-v0.2

You can also list these public LoRAs with an API call:

<details>

<summary>

Required API token permissions

</summary>

At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:

  • <code>Workers AI Write</code>
  • <code>Workers AI Read</code>

</details>

List Public Finetunesbash

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/ai/finetunes/public" \
    --request GET \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Running inference with public LoRAs

To run inference with public LoRAs, you just need to define the LoRA name in the request.

We recommend that you use the prompt template that the LoRA was trained on. You can find this in the HuggingFace repos linked above for each adapter.

cURL

curl https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/mistral/mistral-7b-instruct-v0.1 \
  --header 'Authorization: Bearer {cf_token}' \
  --data '{
    "messages": [
      {
        "role": "user",
        "content": "Write a python program to check if a number is even or odd."
      }
    ],
    "lora": "cf-public-magicoder"
  }'

JavaScript

const answer = await env.AI.run("@cf/mistral/mistral-7b-instruct-v0.1", {
    stream: true,
    raw: true,
    messages: [
        {
            role: "user",
            content:
                "Summarize the following: Some newspapers, TV channels and well-known companies publish false news stories to fool people on 1 April. One of the earliest examples of this was in 1957 when a programme on the BBC, the UKs national TV channel, broadcast a report on how spaghetti grew on trees. The film showed a family in Switzerland collecting spaghetti from trees and many people were fooled into believing it, as in the 1950s British people didn't eat much pasta and many didn't know how it was made! Most British people wouldnt fall for the spaghetti trick today, but in 2008 the BBC managed to fool their audience again with their Miracles of Evolution trailer, which appeared to show some special penguins that had regained the ability to fly. Two major UK newspapers, The Daily Telegraph and the Daily Mirror, published the important story on their front pages.",
        },
    ],
    lora: "cf-public-cnn-summarization",
});

Was this helpful?

YesNo

On this page

Public LoRA adapters - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/workers-ai/features/fine-tunes/public-loras/#page","headline":"Public LoRA adapters","description":"Cloudflare offers a few public LoRA adapters that are immediately ready for use.","url":"https://developers.cloudflare.com/workers-ai/features/fine-tunes/public-loras/","inLanguage":"en","image":"https://developers.cloudflare.com/workers-ai/features/fine-tunes/public-loras/og.png?v=814cbee783f5a721","dateModified":"2026-06-05","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Enable Workers AI models to execute functions and interact with external APIs. title: Function calling image: https://developers.cloudflare.com/workers-ai/features/function-calling/og.png?v=2747bbb068ab45ae


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/workers-ai/llms.txt
Use this file to discover all available pages before exploring further.