Skip to content

Commit 5381c26

Browse files
committed
changelog and melotts
1 parent 8b670e9 commit 5381c26

File tree

4 files changed

+130
-54
lines changed

4 files changed

+130
-54
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: New models in Workers AI
3+
description: New text-to-speech, reranker, whisper, embeddings models now available!
4+
date: 2025-03-17T17:00:00Z
5+
---
6+
7+
Workers AI is excited to add 4 new models to the catalog, including 2 brand new classes of models with a text-to-speech and reranker model. Introducing:
8+
- [@cf/baai/bge-m3](/workers-ai/models/bge-m3/) - a multi-lingual embeddings model that supports over 100 languages. It can also simultaneously perform dense retrieval, multi-vector retrieval, and sparse retrieval, with the ability to process inputs of different granularities.
9+
- [@cf/baai/bge-reranker-base](/workers-ai/models/bge-reranker-base/) - our first reranker model! Rerankers are a type of text classification model that takes a query and context, and outputs a similarity score between the two. When used in RAG systems, you can use a reranker after the initial vector search to find the most relevant documents to return to a user by reranking the outputs.
10+
- [@cf/openai/whisper-large-v3-turbo](/workers-ai/models/whisper-large-v3-turbo/) - a faster, more accurate speech-to-text model. This model was added earlier but is graduating out of beta with pricing included today.
11+
- [@cf/myshell-ai/melotts](/workers-ai/models/melotts/) - our first text-to-speech model that allows users to generate an MP3 with voice audio from inputted text.
12+
13+
Pricing is available for each of these models on the [Workers AI pricing page](/workers-ai/platform/pricing/).
14+
15+
Try it out and let us know what you think! Stay tuned for more models in the coming days.

src/content/docs/workers-ai/platform/pricing.mdx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ All limits reset daily at 00:00 UTC. If you exceed any one of the above limits,
2626

2727
Neurons are our way of measuring AI outputs across different models, representing the GPU compute needed to perform your request. Our serverless model allows you to pay only for what you use without having to worry about renting, managing, or scaling GPUs.
2828

29+
:::note
30+
The Price in Tokens column is equivalent to the Price in Neurons column - the different units are displayed so you can easily compare and understand pricing.
31+
:::
32+
2933
## LLM model pricing
3034

3135
| Model | Price in Tokens | Price in Neurons |
@@ -46,16 +50,20 @@ Neurons are our way of measuring AI outputs across different models, representin
4650
| @cf/meta/llama-2-7b-chat-fp16 | $0.556 per M input tokens <br/> $6.667 per M output tokens | 50505 neurons per M input tokens <br/> 606061 neurons per M output tokens |
4751
| @cf/meta/llama-guard-3-8b | $0.484 per M input tokens <br/> $0.030 per M output tokens | 44003 neurons per M input tokens <br/> 2730 neurons per M output tokens |
4852

49-
## Other model pricing
50-
53+
## Embeddings model pricing
5154
| Model | Price in Tokens | Price in Neurons |
5255
| ------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------ |
53-
| @cf/black-forest-labs/flux-1-schnell | $0.0000528 per 512x512 tile <br/> $0.0001056 per step | 4.80 neurons per 512x512 tile <br/> 9.60 neurons per step |
54-
| @cf/huggingface/distilbert-sst-2-int8 | $0.026 per M input tokens | 2394 neurons per M input tokens |
5556
| @cf/baai/bge-small-en-v1.5 | $0.020 per M input tokens | 1841 neurons per M input tokens |
5657
| @cf/baai/bge-base-en-v1.5 | $0.067 per M input tokens | 6058 neurons per M input tokens |
5758
| @cf/baai/bge-large-en-v1.5 | $0.204 per M input tokens | 18582 neurons per M input tokens |
5859
|@cf/baai/bge-m3 |$0.012 per M input tokens|1075 neurons per M input tokens |
60+
61+
## Other model pricing
62+
63+
| Model | Price in Tokens | Price in Neurons |
64+
| ------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------ |
65+
| @cf/black-forest-labs/flux-1-schnell | $0.0000528 per 512x512 tile <br/> $0.0001056 per step | 4.80 neurons per 512x512 tile <br/> 9.60 neurons per step |
66+
| @cf/huggingface/distilbert-sst-2-int8 | $0.026 per M input tokens | 2394 neurons per M input tokens |
5967
|@cf/baai/bge-reranker-base |$0.003 per M input tokens|283 neurons per M input tokens |
6068
| @cf/meta/m2m100-1.2b | $0.342 per M input tokens <br/> $0.342 per M output tokens | 31050 neurons per M input tokens <br/> 31050 neurons per M output tokens |
6169
| @cf/microsoft/resnet-50 | $2.51 per M images | 228055 neurons per M images |

src/content/workers-ai-models/bge-reranker-base.json

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,61 +11,61 @@
1111
"tags": [],
1212
"properties": [],
1313
"schema": {
14-
"input": {
15-
"type": "object",
16-
"properties": {
17-
"query": {
18-
"type": "string",
19-
"minLength": 1,
20-
"description": "A query you wish to perform against the provided contexts."
21-
},
22-
"top_k": {
23-
"type": "integer",
24-
"default": null,
25-
"minimum": 1,
26-
"description": "Number of returned results starting with the best score."
27-
},
28-
"contexts": {
29-
"type": "array",
30-
"items": {
31-
"type": "object",
32-
"properties": {
33-
"text": {
34-
"type": "string",
35-
"minLength": 1,
36-
"description": "One of the provided context content"
14+
"input": {
15+
"type": "object",
16+
"properties": {
17+
"query": {
18+
"type": "string",
19+
"minLength": 1,
20+
"description": "A query you wish to perform against the provided contexts."
21+
},
22+
"top_k": {
23+
"type": "integer",
24+
"default": null,
25+
"minimum": 1,
26+
"description": "Number of returned results starting with the best score."
27+
},
28+
"contexts": {
29+
"type": "array",
30+
"items": {
31+
"type": "object",
32+
"properties": {
33+
"text": {
34+
"type": "string",
35+
"minLength": 1,
36+
"description": "One of the provided context content"
37+
}
38+
}
39+
},
40+
"description": "List of provided contexts. Note that the index in this array is important, as the response will refer to it."
3741
}
38-
}
3942
},
40-
"description": "List of provided contexts. Note that the index in this array is important, as the response will refer to it."
41-
}
43+
"required": [
44+
"query",
45+
"contexts"
46+
]
4247
},
43-
"required": [
44-
"query",
45-
"contexts"
46-
]
47-
},
48-
"output": {
49-
"type": "object",
50-
"contentType": "application/json",
51-
"properties": {
52-
"response": {
53-
"type": "array",
54-
"items": {
55-
"type": "object",
56-
"properties": {
57-
"id": {
58-
"type": "integer",
59-
"description": "Index of the context in the request"
60-
},
61-
"score": {
62-
"type": "number",
63-
"description": "Score of the context under the index."
48+
"output": {
49+
"type": "object",
50+
"contentType": "application/json",
51+
"properties": {
52+
"response": {
53+
"type": "array",
54+
"items": {
55+
"type": "object",
56+
"properties": {
57+
"id": {
58+
"type": "integer",
59+
"description": "Index of the context in the request"
60+
},
61+
"score": {
62+
"type": "number",
63+
"description": "Score of the context under the index."
64+
}
65+
}
66+
}
6467
}
65-
}
6668
}
67-
}
6869
}
69-
}
7070
}
7171
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"id": "c837b2ac-4d9b-4d37-8811-34de60f0c44f",
3+
"source": 1,
4+
"name": "@cf/myshell-ai/melotts",
5+
"description": "MeloTTS is a high-quality multi-lingual text-to-speech library by MyShell.ai.",
6+
"task": {
7+
"id": "b52660a1-9a95-4ab2-8b1d-f232be34604a",
8+
"name": "Text-to-Speech",
9+
"description": "Text-to-Speech (TTS) is the task of generating natural sounding speech given text input. TTS models can be extended to have a single model that generates speech for multiple speakers and multiple languages."
10+
},
11+
"tags": [],
12+
"properties": [],
13+
"schema": {
14+
"input": {
15+
"type": "object",
16+
"properties": {
17+
"prompt": {
18+
"type": "string",
19+
"minLength": 1,
20+
"description": "A text description of the image you want to generate"
21+
},
22+
"lang": {
23+
"type": "string",
24+
"default": "en",
25+
"description": "The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified"
26+
}
27+
},
28+
"required": [
29+
"prompt"
30+
]
31+
},
32+
"output": {
33+
"oneOf": [
34+
{
35+
"type": "object",
36+
"contentType": "application/json",
37+
"properties": {
38+
"audio": {
39+
"type": "string",
40+
"description": "The generated audio in MP3 format, base64-encoded"
41+
}
42+
}
43+
},
44+
{
45+
"type": "string",
46+
"contentType": "audio/mpeg",
47+
"format": "binary",
48+
"description": "The generated audio in MP3 format"
49+
}
50+
]
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)