FinanceGPT Model Hub API
all-MiniLM-L6-v2
Programmatic feature extraction against the exact governed Model Hub revision.
Task
feature-extraction
Model Hub API
Dimensions
384
Verified at runtime
Scope
ml:inference
Existing FinanceGPT API scope
Available
No
Current governed runtime
Endpoint
POST /api/v2/model-hub/models/transformer-financegpt-semantic-general-v1/inference{
"inputs": [
"Operating cash flow increased year over year."
]
}Raw input text is not written to application logs. HF7 records request hashes and bounded telemetry only.
Curl
curl -sS -X POST "https://financegpt.dev/api/v2/model-hub/models/transformer-financegpt-semantic-general-v1/inference" \
-H "Authorization: Bearer $FINANCEGPT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"inputs":["Operating cash flow increased year over year."]}'Python
import os
import requests
response = requests.post(
"https://financegpt.dev/api/v2/model-hub/models/transformer-financegpt-semantic-general-v1/inference",
headers={"Authorization": f"Bearer {os.environ['FINANCEGPT_API_TOKEN']}"},
json={"inputs": ["Operating cash flow increased year over year."]},
timeout=30,
)
response.raise_for_status()
embeddings = response.json()["data"]["embeddings"]
Javascript
const response = await fetch("https://financegpt.dev/api/v2/model-hub/models/transformer-financegpt-semantic-general-v1/inference", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FINANCEGPT_API_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ inputs: ["Operating cash flow increased year over year."] }),
});
if (!response.ok) throw new Error(`FinanceGPT inference failed: ${response.status}`);
const { data } = await response.json();
console.log(data.embeddings);
Governance
API inference is read-only model execution. It does not publish, promote or rebind models; it grants no subscription, entitlement, AI Credit or Financial Actions authority.