cracked-ai-pydantic-ai
Pydantic AI tools for Cracked, the tool router for AI agents: one API key, 67,000+ tools (web search, scrapers, social profiles, enrichment, media models) with measured health and a real price per call.
load_cracked_tools() turns every Cracked capability into a native Pydantic AI Tool, built at runtime from
GET https://cracked.ai/v1/capabilities/tools?format=openai via Tool.from_schema(). Runs go through POST /v1/run;
each result carries the run permalink, status and cost.
pip install cracked-ai-pydantic-ai pydantic-ai
import os
from pydantic_ai import Agent
from cracked_ai_pydantic_ai import load_cracked_tools
tools = load_cracked_tools(api_key=os.environ["CRACKED_API_KEY"], capabilities=["web-search", "weather-forecast"])
agent = Agent("openai:gpt-4o-mini", tools=tools, instructions="Use the tools; cite the run url.")
print(agent.run_sync("What is the weather in Austin this weekend?").output)
# Each tool call returns {"run": {"runId", "status", "url", "costUsd", "durationMs"}, "output": ...}
Options: capabilities (ids, dashes or underscores), set="top"|"all", base_url, timeout, max_output_chars.
Every tool returns {"run": {"runId", "status", "url", "costUsd", "durationMs"}, "output": ...}; API errors come back as
{"error", "status", "message"} so the model can read them.
Pricing
There is no subscription: each run is billed per call from your workspace balance. The price is shown on every
tool page (https://cracked.ai/tools) and inside each tool description your model sees (Price: from $.../call ...).
run.costUsd in every result is what that call actually cost. Full list: https://cracked.ai/capabilities and https://cracked.ai/pricing.
Keys, trial credit and referrals
- Humans: https://cracked.ai/app/keys.
- Agents can self-register without a human:
POST https://cracked.ai/v1/agents/register {"name": "my-agent"}returns anapiKey(shown once, with $1 of trial credit) and aclaimUrlto hand to your human; claiming adds credit and enables top-ups. - Every workspace that signs up through your referral link (
GET https://cracked.ai/v1/referrals) earns your workspace $5 of credit. - Try a tool with no key or install:
npx cracked-ai try "weather in austin".
Docs: https://cracked.ai/docs/integrations. Support: support@cracked.ai. MIT.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cracked_ai_pydantic_ai-0.1.0.tar.gz.
File metadata
- Download URL: cracked_ai_pydantic_ai-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f8d7c52d2c1ce4a55ac3435e5902c0abffb72d3c17c00552993cdc4dfc1bc61
|
|
| MD5 |
daed3d5d24acac3d79c447ac6231159a
|
|
| BLAKE2b-256 |
cd6279870942f68433cc5c88c50eae0e2bf6ec3e9f1ee5627fc86790bc3fe10c
|
File details
Details for the file cracked_ai_pydantic_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cracked_ai_pydantic_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf90554d6242413089de607f49659b0ab49ae9c9810a841cdeb0f574da9cb9f
|
|
| MD5 |
1bd8b677daf4c257b4aa61969250989f
|
|
| BLAKE2b-256 |
ee64fcbb50d6557e80cc97196655ae910790156d2800712276dff43ba4ce353d
|