CoreForge Media

v1.0.1
io.github.ShafiCodes25/coreforge-media Checked 4 days ago Published 26 days ago

CoreForge media tools: speech-to-text, document parsing, translation, embeddings.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

speech_to_text

Transcribe one audio file (up to 15 minutes) with CoreForge Speech (local faster-whisper): transcript text, detected language, duration and word-level segments. Provide an audio URL or base64 audio. Paid via x402 ($0.40 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
audioBase64stringBase64-encoded audio (alternative to audioUrl)
audioUrlstringURL of the audio file to transcribe
durationSecondsnumberDeclared duration in seconds (max 900)
filenamestringFilename hint, e.g. interview.mp3 (used with audioBase64)
languagestringLanguage hint, e.g. 'en' (auto-detected when omitted)

document_parse

Parse one PDF or image document (up to 25 MB) into clean markdown plus structured JSON with a local open-source document model (Granite-Docling). Documents never leave CoreForge infrastructure. Paid via x402 ($0.10 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
documentBase64stringBase64-encoded document
documentUrlstringURL of the document (alternative to documentBase64)
filenamestringFilename hint, e.g. report.pdf

page_to_markdown

Fetch a web page and return clean, model-ready markdown (title + extracted content, up to 100k characters). Paid via x402 ($0.002 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
url *stringThe page URL (http/https)

translate_text

Translate up to 5,000 characters of text into a target language with a local MADLAD-400 model. Suited to listings, blurbs and metadata. Paid via x402 ($0.01 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
target *stringTarget language code, e.g. 'es', 'fr', 'de'
text *stringText to translate
sourcestringSource language code (auto-detected when omitted)

embeddings

Compute 768-dim text embeddings (BGE base, run locally) for one text or a batch of up to 256 texts. OpenAI-style response shape. Paid via x402 ($0.002 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
input *One text, or an array of texts (max 256, each max 8,192 chars)

rerank

Rerank up to 100 documents against a query with a local BGE cross-encoder reranker; returns relevance scores (optionally just the top N). Paid via x402 ($0.005 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
documents *arrayDocuments to score (max 100)
query *stringThe query to rank against
top_nintegerReturn only the top N documents

chat_completion

OpenAI-compatible chat completion served by CoreForge Inference (local Qwen3-8B) with hard server-side token and daily caps. Paid via x402 ($0.002 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
messages *arrayChat messages, OpenAI style: [{role, content}]
max_tokensintegerRequested max tokens (server-side cap applies)
modelstringModel name (server allowlist applies)

image_generate

Generate one draft/concept image (default 1024×1024) from a text prompt with FLUX.1-schnell on a local GPU. Concept quality; text rendering in images is not guaranteed. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
prompt *stringImage prompt (max 1,000 chars)
heightintegerHeight in px (default 1024)
seedintegerSeed for reproducibility
stepsintegerDiffusion steps (default 4)
widthintegerWidth in px (default 1024)