Get a Bytez API Key

And run inference in minutes

from bytez import Bytez

client = Bytez("YOUR_BYTEZ_KEY_HERE")

model = client.model("Qwen/Qwen2-7B-Instruct")

model.load()

input_text = "Once upon a time there was a beautiful home where"

model_params = {"max_new_tokens": 20, "max_new_tokens": 5, "temperature": 0.5}

result = model.run(input_text, model_params=model_params)

output = result["output"]

generated_text = output[0]["generated_text"]

print(generated_text)

List Models & Tasks

from bytez import Bytez

client = Bytez("YOUR_BYTEZ_KEY_HERE")

# To list all models
models = client.list_models()

println(models)

# To list models by task
models_by_task = client.list_models("object-detection")

println(models_by_task)

Explore 40K+ AI Models

Explore the Model API

Chat

Input millions of tokens to Bytez models and derive understanding from unstructured images, videos, and documents.

Image Generation

Modify the behavior of models to adapt to specific tasks, recognize data, and solve problems.

Embeddings

Generate text or vector representations of your data for advanced analytics and search capabilities.

Function Calling

Execute code or actions based on model-generated outputs.

All Capabilities

Adapt Bytez models to a wide variety of machine learning tasks.