Running Models on VaikerAI Using Python
1. Install the Python Library
pip install vaikerai2. Authenticate
export REPLICATE_API_TOKEN=8UY56_....3. Run a Model
import vaikerai
output = vaikerai.run(
"stability-ai/sdxl:39ed52f2a78e934b3ba6e2a89f5b1c712de7dfea535525255b1aa35c5565e08b",
input={"prompt": "an iguana on the beach, pointillism"}
)
print(output)4. Using Local Files as Inputs
Example: Using a Local File
5. Using URLs as Inputs
Example: Using a URL
6. Handling Output
Example: Streaming Output
Next Steps
Last updated