pydo.inference.create_messages()
Generated on 7 May 2026
from pydo version
v0.34.0
Description
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("MODEL_ACCESS_KEY"))
resp = client.messages.create(
model="claude-opus-4-6",
max_tokens=1024,
messages=[
{"role": "user", "content": "What is the capital of Portugal?"},
],
)
print(resp.content[0].text)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.