Monid Submodule
Python wrapper for https://monid.ai/docs/api/overview.md. This file is the
repository's canonical Monid skill. Consult https://monid.ai/SKILL.md when the
upstream CLI workflow itself must be refreshed; do not mix that separate source
into the context-engineering vendor tree under .agents/skills/.
Discover → inspect → run
from infrastructure.search.monid import MonidClient
client = MonidClient.from_env()
for hit in client.discover("web search", limit=5).results:
per_1k = hit.price.estimated_per_1k_calls_usd() if hit.price else None
print(hit.score, hit.provider, hit.endpoint, per_1k)
schema = client.inspect("exa", "/search")
record = client.run(
"exa",
"/search",
{"query": "retrieval augmented generation", "numResults": 5},
wait=True,
)
print(record.status, record.cost)
Search API USD / 1,000 (direct providers)
from infrastructure.search.monid import format_pricing_table, sorted_by_cost
print(format_pricing_table())
for row in sorted_by_cost():
print(row.provider, row.usd_per_1k_searches)
Full notes: PRICING.md.
CLI
export MONID_API_KEY=monid_live_...
uv run python -m infrastructure.search.monid discover "linkedin posts"
uv run python -m infrastructure.search.monid pricing-table
uv run python -m infrastructure.search.monid balance
Precedence (do not spend Monid balance unnecessarily)
- User's explicit instruction for the task.
- User's existing MCP server, API key, or CLI for that service.
- Monid — for gaps only.