Title: Accessing API costs · Issue #17 · parallel-web/parallel-sdk-python · GitHub
Open Graph Title: Accessing API costs · Issue #17 · parallel-web/parallel-sdk-python
X Title: Accessing API costs · Issue #17 · parallel-web/parallel-sdk-python
Description: Is there an easy way to get the API costs similar to the OAI API response.usage.cost_details for a run_result? E.g. for this minimal DeepResearch example: import os from parallel import Parallel client = Parallel(api_key=os.environ["PARA...
Open Graph Description: Is there an easy way to get the API costs similar to the OAI API response.usage.cost_details for a run_result? E.g. for this minimal DeepResearch example: import os from parallel import Parallel cl...
X Description: Is there an easy way to get the API costs similar to the OAI API response.usage.cost_details for a run_result? E.g. for this minimal DeepResearch example: import os from parallel import Parallel cl...
Opengraph URL: https://github.com/parallel-web/parallel-sdk-python/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Accessing API costs","articleBody":"Is there an easy way to get the API costs similar to the OAI API `response.usage.cost_details` for a `run_result`? E.g. for this minimal `DeepResearch` example:\n\n```python\nimport os\nfrom parallel import Parallel\n\nclient = Parallel(api_key=os.environ[\"PARALLEL_API_KEY\"])\n\ntask_run = client.task_run.create(\n input=\"Create a research report the most recent academic research advancements in web search for LLMs.\",\n processor=\"lite\",\n)\nprint(f\"Task Created. Run ID: {task_run.run_id}\")\n\nrun_result = client.task_run.result(task_run.run_id, api_timeout=3600)\nprint(run_result.output)\n``` ","author":{"url":"https://github.com/RobertTLange","@type":"Person","name":"RobertTLange"},"datePublished":"2025-11-07T13:41:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/17/parallel-sdk-python/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:06984953-242c-435c-146d-94cbebb5b422 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0FC:217E54:85A51F:C02C9B:6A4CB1F9 |
| html-safe-nonce | 880ea2bfed47cb304102782a0646f3d5a3b955252ad9a1786d0c80fea8d49c3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEZDOjIxN0U1NDo4NUE1MUY6QzAyQzlCOjZBNENCMUY5IiwidmlzaXRvcl9pZCI6IjczMDU0MzY3MTAyMjkwMjkzNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a83a8791da2d1b781385a8e90ef16773e63d8d290c12e3df0a184bb324455c42 |
| hovercard-subject-tag | issue:3600402180 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/parallel-web/parallel-sdk-python/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6405a7c991494e2014107524441a0732711fcc613163735c718933befd05d2c3/parallel-web/parallel-sdk-python/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6405a7c991494e2014107524441a0732711fcc613163735c718933befd05d2c3/parallel-web/parallel-sdk-python/issues/17 |
| og:image:alt | Is there an easy way to get the API costs similar to the OAI API response.usage.cost_details for a run_result? E.g. for this minimal DeepResearch example: import os from parallel import Parallel cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RobertTLange |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/parallel-web/parallel-sdk-python git https://github.com/parallel-web/parallel-sdk-python.git |
| octolytics-dimension-user_id | 210743255 |
| octolytics-dimension-user_login | parallel-web |
| octolytics-dimension-repository_id | 1005819284 |
| octolytics-dimension-repository_nwo | parallel-web/parallel-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1005819284 |
| octolytics-dimension-repository_network_root_nwo | parallel-web/parallel-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width