{ "name": "@cf/meta/m2m100-1.2b", "properties": [ { "property_id": "async_queue", "value": "true" }, { "property_id": "price", "value": [ { "unit": "per M input tokens", "price": 0.342, "currency": "USD" }, { "unit": "per M output tokens", "price": 0.342, "currency": "USD" } ] }, { "property_id": "info", "value": "https://github.com/facebookresearch/fairseq/tree/main/examples/m2m_100" }, { "property_id": "languages", "value": "english, chinese, french, spanish, arabic, russian, german, japanese, portuguese, hindi" }, { "property_id": "terms", "value": "https://github.com/facebookresearch/fairseq/blob/main/LICENSE" } ], "id": "617e7ec3-bf8d-4088-a863-4f89582d91b5", "source": 1, "description": "Multilingual encoder-decoder (seq-to-seq) model trained for Many-to-Many multilingual translation", "task": { "id": "f57d07cb-9087-487a-bbbf-bc3e17fecc4b", "name": "Translation", "description": "Translation models convert a sequence of text from one language to another." }, "created_at": "2023-09-25 19:21:11.898", "tags": [], "schema": { "input": { "type": "object", "oneOf": [ { "properties": { "text": { "type": "string", "minLength": 1, "description": "The text to be translated" }, "source_lang": { "type": "string", "default": "en", "description": "The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified" }, "target_lang": { "type": "string", "description": "The language code to translate the text into (e.g., 'es' for Spanish)" } }, "required": [ "text", "target_lang" ] }, { "properties": { "requests": { "type": "array", "description": "Batch of the embeddings requests to run using async-queue", "items": { "type": "object", "properties": { "text": { "type": "string", "minLength": 1, "description": "The text to be translated" }, "source_lang": { "type": "string", "default": "en", "description": "The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified" }, "target_lang": { "type": "string", "description": "The language code to translate the text into (e.g., 'es' for Spanish)" } }, "required": [ "text", "target_lang" ] } } }, "required": [ "requests" ] } ] }, "output": { "type": "object", "contentType": "application/json", "oneOf": [ { "properties": { "translated_text": { "type": "string", "description": "The translated text in the target language" } } }, { "type": "object", "contentType": "application/json", "title": "Async response", "properties": { "request_id": { "type": "string", "description": "The async request id that can be used to obtain the results." } } } ] } }, "deprecated": false }