phaseo-sdk-python
/phaseo-sdk-python
Builds Phaseo integrations with the official Python SDK, `phaseo`: one shared client, `generate_response` and streaming, images, audio, async video, presets, model discovery and request IDs for debugging. Use when a Python project depends on or should adopt `phaseo`, in scripts, notebooks or services. Not for TypeScript (use phaseo-sdk-typescript) or code that keeps the OpenAI Python SDK with a swapped base URL (phaseo-gateway).
- Author
- phaseoteam ↗
- Repository
- phaseo ↗
- Licence
- AGPL-3.0
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
What it does and when to use it
Builds Phaseo integrations with the official Python SDK, `phaseo`: one shared client, `generate_response` and streaming, images, audio, async video, presets, model discovery and request IDs for debugging. Use when a Python project depends on or should adopt `phaseo`, in scripts, notebooks or services. Not for TypeScript (use phaseo-sdk-typescript) or code that keeps the OpenAI Python SDK with a swapped base URL (phaseo-gateway).
Original author description
Builds Phaseo integrations with the official Python SDK, `phaseo`: one shared client, `generate_response` and streaming, images, audio, async video, presets, model discovery and request IDs for debugging. Use when a Python project depends on or should adopt `phaseo`, in scripts, notebooks or services. Not for TypeScript (use phaseo-sdk-typescript) or code that keeps the OpenAI Python SDK with a swapped base URL (phaseo-gateway).
How it works
- Outcome
- Workflow
- Canonical client setup
- Preferred surface selection
- Rules
- Validation
SKILL.md preview
--- name: phaseo-sdk-python description: "Builds Phaseo integrations with the official Python SDK, `phaseo`: one shared client, `generate_response` and streaming, images, audio, async video, presets, model discovery and request IDs for debugging. Use when a Python project depends on or should adopt `phaseo`, in scripts, notebooks or services. Not for TypeScript (use phaseo-sdk-typescript) or code that keeps the OpenAI Python SDK with a swapped base URL (phaseo-gateway)." license: MIT --- # Phaseo SDK Python Use this skill when the repository should call Phaseo through `phaseo` instead of raw `httpx`, `requests`, or another compatibility client. ## Outcome Deliver a working Python integration that: - imports `Phaseo` from `phaseo` - reads credentials from `PHASEO_API_KEY` - uses the smallest suitable SDK helper - logs enough request context to debug failures safely ## Workflow 1. Create one shared `Phaseo` client. 2. Prefer the Responses API helpers for new text integrations. 3. Reuse preset slugs instead of copying prompt and routing defaults into each caller. 4. For async video, persist the returned job id and poll status until terminal. 5. Validate the exact surface you changed with a minimal request. ## Canonical client setup ```python import os from phaseo import Phaseo gateway = Phaseo(api_key=os.environ["PHASEO_API_KEY"]) ``` ## Preferred surface selection - Text and multimodal generation: `generate_response`, `stream_response` - Chat-style compatibility only for callers that already expect chat-shaped payloads - Images: `generate_image`, `generate_image_edit` - Audio: `generate_speech`, `generate_transcription`, `generate_translation` - Video: `generate_video` - Discovery: `get_models`, `get_health` ## Rules - Prefer `generate_response` for net-new text features unless the caller is already built around chat-style messages. - Keep model ids configurable and refresh them from `/v1/models` or repository discovery helpers. - Keep API keys out of notebooks, fixtures, and committed scripts. - If the application already logs request metadata, include request id, model id, and preset slug when available. ## Validation - one successful request on the changed endpoint - one error-path check when auth or model lookup behavior changed - confirm async jobs are tracked by returned id instead of assuming immediate completion
Files in this package (3)
- SKILL.md 2 KB
- agents/openai.yaml 1 KB
- evals/evals.json 1 KB
Versions
The database has no other skills named phaseo-sdk-python.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 7c3a00c59e70 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100phaseo-sdk-typescript
Builds Phaseo integrations with the official TypeScript and JavaScript SDK, `@phaseo/sdk`: one shared client, `generateResponse` and streaming, images, audio, async video, presets, model discovery and request IDs for debugging. Use when a project depends on or should adopt… - 90phaseo-gateway
Integrates applications with the Phaseo Gateway over OpenAI-compatible REST, the TypeScript SDK (`@phaseo/sdk`), the Python SDK (`phaseo`) or the Vercel AI SDK provider (`@phaseo/ai-sdk-provider`): base URL, API key auth, attribution headers, model IDs and smoke tests. Use when… - 100python-sdk
Python SDK patterns for Opik. Use when working in sdks/python, on SDK APIs, integrations, or message processing. - 100mcp-server-building-typescript-sdk
Use this skill when developing custom, production-ready MCP servers using the official @modelcontextprotocol/sdk TypeScript library. - 95anthropic-python
Anthropic Python SDK for Claude API integration. Covers messages API, streaming, tool use, vision, error handling, and best practices. Use when building Python applications that call the Claude API. USE WHEN: user mentions "anthropic", "claude api", "anthropic sdk",… - 100mcp-server-building-python-sdk
Use this skill when building asynchronous Python MCP servers using the official mcp package or FastMCP framework.