Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Python to call model runs and publish model projects.
import os import requests gateway_url = os.environ["AIMP_GATEWAY_URL"].rstrip("/") payload = { "model": "demo-model", "mode": "execute", "scope": "playground", "input": {"text": "Hello from Python"}, "params": {}, } response = requests.post( f"{gateway_url}/api/runs", headers={"X-API-Key": os.environ["AIMP_API_KEY"]}, json=payload, timeout=60, ) response.raise_for_status() print(response.json())
python -m pip install ai-marketplace-sdk
python -m aimp_sdk.model_runner --module /app/main.py
ai init demo-model --yes ai contract validate --json ai publish --configure --json ai push
Was this page helpful?