minimax/image-01
MiniMax's text-to-image model: text in, image out. Billed per call rather than per token, so the cost of a single image is fixed and easy to budget for batch work. Same API key and wallet as the text models on OneHop.
Use either ID to call this model via the API.
minimax/image-01Replace the ONEHOP_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
response = client.images.generate(
model="minimax/image-01",
prompt="A red panda coding under the moonlight",
n=1,
)
print(response.data[0].url)