Models
Create a model
Create a new model.
AuthorizationBearer <token>
In: header
nameName
The name of the model.
visibility?ModelVisibility
The visibility of the model. 'public' models are visible to everyone and can be used and downloaded by anyone. 'restricted' models are visible to everyone and anyone can use these models in the cloud, but only the owner can download them. 'private' models are only visible to the owner and can only be used or downloaded by the owner.
Default
"private"Value in
"private" | "public" | "restricted"description?Description
The description of the model.
overview?Overview
The overview of the model.
source_url?Source Url
Source url from where the model's code can be referenced.
license_url?License Url
License url where the model's usage is specified.
paper_url?Paper Url
Paper url from where research info on the model can be found.
category_slugs?Category Slugs
A list of model category slugs.
Default
[]Response Body
from wriftai import Clientwriftai = Client()model = wriftai.models.create({ "name": "kokoro-82m", "visibility": "public", "description": ( "A lightweight text-to-speech model that delivers high-quality, " "natural voice synthesis while remaining fast, efficient, and easy " "to deploy for both production and personal projects." ), "source_url": "https://huggingface.co/hexgrad/Kokoro-82M", "paper_url": "https://huggingface.co/papers/2203.02395", "license_url": ( "https://huggingface.co/datasets/choosealicense/licenses/blob/main/" "markdown/apache-2.0.md" ), "category_slugs": ["text-to-speech"],})print(model.name){
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "kokoro-82m",
"created_at": "2024-06-12T14:22:31Z",
"visibility": "public",
"description": "A lightweight text-to-speech model that delivers high-quality, natural voice synthesis while remaining fast, efficient, and easy to deploy for both production and personal projects.",
"updated_at": "2024-06-12T14:25:03Z",
"owner": {
"account_id": "8f2b1e4a-9c3d-4f6e-b1a2-7d8e9f0a1b2c",
"name": "jane-doe",
"avatar_url": "https://wrift.ai/avatars/jane-doe.png"
},
"predictions_count": 1284,
"categories": [
{
"name": "Text to Speech",
"slug": "text-to-speech"
}
],
"overview": "Kokoro-82M is an 82 million parameter text-to-speech model that produces natural, expressive speech across multiple voices and languages, optimized for low-latency inference on modest hardware.",
"source_url": "https://huggingface.co/hexgrad/Kokoro-82M",
"license_url": "https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/apache-2.0.md",
"paper_url": "https://huggingface.co/papers/2203.02395",
"latest_version": {
"schemas": {
"prediction": {
"input": {
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"output": {
"properties": {
"audio": {
"type": "string"
}
},
"type": "object"
},
"stream_output": {}
}
},
"compatibilities": {
"openai_chat_completions": true,
"openai_images_generations": false,
"openai_embeddings": false,
"openai_responses": true,
"anthropic_messages": false
},
"size": 0,
"container_image_digest": "sha256:1a2b3c4d5e6f7089abcdef1234567890abcdef1234567890abcdef123456789",
"number": 3,
"release_notes": "Improved inference speed by 20% and fixed tokenizer edge cases.",
"created_at": "2024-05-01T09:12:00Z"
},
"cover_image_url": "https://wrift.ai/models/kokoro-82m/cover.png"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}